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

Build failure with template-haskell-2.21 (GHC 9.8) #93

Closed
Tracked by #61 ...
andreasabel opened this issue Jul 31, 2023 · 1 comment · Fixed by #94
Closed
Tracked by #61 ...

Build failure with template-haskell-2.21 (GHC 9.8) #93

andreasabel opened this issue Jul 31, 2023 · 1 comment · Fixed by #94

Comments

@andreasabel
Copy link
Contributor

Build fails with template-haskell-2.21; there is already a patch in head.hackage: https://gitlab.haskell.org/ghc/head.hackage/-/blob/master/patches/generic-deriving-1.14.4.patch

[15 of 22] Compiling Generics.Deriving.TH.Internal ( src/Generics/Deriving/TH/Internal.hs, dist/build/Generics/Deriving/TH/Internal.o, dist/build/Generics/Deriving/TH/Internal.dyn_o )

src/Generics/Deriving/TH/Internal.hs:190:19: error: [GHC-83865]
    • Couldn't match type ‘BndrVis’ with ‘()’
      Expected: [TyVarBndr_ ()]
        Actual: [TyVarBndr BndrVis]
    • In the first argument of ‘Just’, namely ‘bndrs’
      In the expression: Just bndrs
      In a case alternative:
          FamilyI (OpenTypeFamilyD (TypeFamilyHead _ bndrs _ _)) _
            -> Just bndrs
    |
190 |           -> Just bndrs
    |                   ^^^^^

src/Generics/Deriving/TH/Internal.hs:201:19: error: [GHC-83865]
    • Couldn't match type ‘BndrVis’ with ‘()’
      Expected: [TyVarBndr_ ()]
        Actual: [TyVarBndr BndrVis]
    • In the first argument of ‘Just’, namely ‘bndrs’
      In the expression: Just bndrs
      In a case alternative:
          FamilyI (ClosedTypeFamilyD (TypeFamilyHead _ bndrs _ _) _) _
            -> Just bndrs
    |
201 |           -> Just bndrs
    |                   ^^^^^
@RyanGlScott
Copy link
Collaborator

I've uploaded generic-deriving-1.14.5 to Hackage with a fix.

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.

2 participants