Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't build on Windows #5

Open
CremboC opened this issue Dec 16, 2016 · 5 comments
Open

Doesn't build on Windows #5

CremboC opened this issue Dec 16, 2016 · 5 comments

Comments

@CremboC
Copy link

CremboC commented Dec 16, 2016

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)

@Ofenhed
Copy link

Ofenhed commented May 9, 2017

Doesn't build on Linux either.

@chipbuster
Copy link

Won't build on MacOS, Haskell Platform 8.0.2

@romhack
Copy link

romhack commented Sep 19, 2017

Doesn't build on latest stack either.

@mayeranalytics
Copy link

Using stack you can do this:

git clone git@github.com: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 .

@chipbuster
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants