bitstream icon indicating copy to clipboard operation
bitstream copied to clipboard

Doesn't build on Windows

Open CremboC opened this issue 8 years ago • 5 comments

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)

CremboC avatar Dec 16 '16 12:12 CremboC

Doesn't build on Linux either.

Ofenhed avatar May 09 '17 05:05 Ofenhed

Won't build on MacOS, Haskell Platform 8.0.2

chipbuster avatar Jun 03 '17 08:06 chipbuster

Doesn't build on latest stack either.

romhack avatar Sep 19 '17 11:09 romhack

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 .

mayeranalytics avatar Apr 26 '18 03:04 mayeranalytics

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.

chipbuster avatar Jun 05 '18 04:06 chipbuster