Skip to content

Does ghc-lib-parser need a patch?

I'm getting the following error using ghc-9.9.20230728:

libraries/template-haskell/Language/Haskell/TH/Lib/Internal.hs:39:14: error: [GHC-83865]
    • Expected kind ‘* -> *’, but ‘Code Q’ has kind ‘* -> *’
    • In the type ‘Code Q’
      In the type declaration for ‘CodeQ’
   |
39 | type CodeQ = Code Q
   |              ^^^^^^

I got this compiler via ghc-wasm-meta. This failure might also be fixed in a newer version of the compiler; I haven't checked.