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

cannot compile with ghc-9.8: Couldn't match type ‘()’ with ‘TH.BndrVis’ #43

Closed
jwaldmann opened this issue Oct 9, 2023 · 2 comments

Comments

@jwaldmann
Copy link

I have this package as a transitive dependency. With 9.8.1-rc1, I get

$ cabal install --lib haskell-src-meta-0.8.12 -w /opt/ghc/ghc-9.8.0.20230929/bin/ghc --allow-newer

...
[3 of 6] Compiling Language.Haskell.Meta.Syntax.Translate ( src/Language/Haskell/Meta/Syntax/Translate.hs, dist/build/Language/Haskell/Meta/Syntax/Translate.o, dist/build/Language/Haskell/Meta/Syntax/Translate.dyn_o )
src/Language/Haskell/Meta/Syntax/Translate.hs:533:29: error: [GHC-83865]
    • Couldn't match type ‘()’ with ‘TH.BndrVis’
      Expected: [TH.TyVarBndr TH.BndrVis]
        Actual: [TyVarBndr_ ()]
    • In the second argument of ‘TH.TySynD’, namely ‘(toTyVars h)’
      In the expression: TH.TySynD (toName h) (toTyVars h) (toType t)
      In an equation for ‘toDec’:
          toDec (Exts.TypeDecl _ h t)
            = TH.TySynD (toName h) (toTyVars h) (toType t)
    |
533 |     = TH.TySynD (toName h) (toTyVars h) (toType t)
    |                             ^^^^^^^^^^
...
@DigitalBrains1
Copy link

HEAD.hackage has a patch for this package to make it work with 9.8.

(#how-to-use)

@athas
Copy link
Collaborator

athas commented Nov 12, 2023

Fixed in #44.

@athas athas closed this as completed Nov 12, 2023
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

3 participants