bitstream
bitstream copied to clipboard
Doesn't build on Windows
Data\Bitstream\Lazy.hs:692:1: error:
Rule "Lazy Bitstream unstreamChunks/streamChunks fusion":
Illegal expression: unId
in left-hand side: unId (unstreamChunks (streamChunks
LHS must be of form (f e1 .. en) where f is not forall'd
Is the error I get upon cabal install bitstream
. I know this library hasn't been updated in 2 years, but would be nice to try it out (unless you have an alternative).
PS. I'm on the newest Haskell platform (8.0.1)
Doesn't build on Linux either.
Won't build on MacOS, Haskell Platform 8.0.2
Doesn't build on latest stack either.
Using stack
you can do this:
git clone [email protected]:depressed-pho/bitstream.git
cd bitstream
stack init
stack init
searches through the snapshots and finds a match with lts-3.22
(Jan 2016).
Then stack build
will download the old-ishghc-7.10.2
and compiles it all without errors (but one warning). The tests (via stack test
) compile fine (apart from some warnings, again) and do pass .
I was able to build this into a stack project by specifying the lts-3.22
resolver and adding bitstream-0.2.0.4
into the extra-deps
field in stack.yaml
, as well as adding bitstream
to the requirements in package.yaml
Bit of a bummer that it basically forces the use of 2-year-old packages, but it at least appears to work.