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

ghc-lib-parser-9.10.1.20240511 no longer builds #557

Closed
Tritlo opened this issue Sep 19, 2024 · 3 comments · Fixed by #559
Closed

ghc-lib-parser-9.10.1.20240511 no longer builds #557

Tritlo opened this issue Sep 19, 2024 · 3 comments · Fixed by #559

Comments

@Tritlo
Copy link

Tritlo commented Sep 19, 2024

There seems to be a missing version bound for happy. happy-2.0 was released today (or so I gather), and now I get the following error when trying to cabal install:

dist/build/GHC/Parser.hs:5975:24: error: [GHC-58481]
    parse error on input ‘<-’
    Suggested fix: Possibly caused by a missing 'do'?
     |
5975 |                   ; mg <- mkPatSynMatchGroup name happy_var_5
     |                        ^^

It seems we need a version bound on happy to happy-1.20 until this issue is fixed,
see haskell/happy#303

@geekosaur
Copy link

FWIW it built fine for me with happy-1.20.1.1, then I did cabal update; cabal install happy; cabal install --lib --package-env=. haskell-lib-parser and got the above error.

@sgraf812
Copy link

I deprecated happy-2.0 and am hopeful that the just-released happy-2.0.1 fixes the issue.

@Tritlo
Copy link
Author

Tritlo commented Sep 20, 2024

It's working again! I still think we should consider some versions bounds to prevent a similar situation in the future.

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

Successfully merging a pull request may close this issue.

3 participants