Skip to content

th-compat fails on GHC 9.9.20230623

https://github.com/fourmolu/fourmolu/actions/runs/5451582127/jobs/9917992950?pr=343

Failure:

[1 of 1] Compiling Language.Haskell.TH.Syntax.Compat ( src/Language/Haskell/TH/Syntax/Compat.hs, dist/build/Language/Haskell/TH/Syntax/Compat.o )

src/Language/Haskell/TH/Syntax/Compat.hs:761:16: error: [GHC-83865]
    • Couldn't match kind: * -> *
                     with: * -> *
      Expected kind ‘(* -> *) -> * -> *’,
        but ‘Code’ has kind ‘(* -> *) -> * -> *’
    • In the type ‘Code :: ((* -> *) -> forall r. TYPE r -> *)’
exe:fourmolu-wasm from fourmolu-wasm-0). See the build log above for details.

      In the type declaration for ‘Splice’
    |
761 | type Splice  = Code :: ((* -> *) -> forall r. TYPE r -> *)
    |                ^^^^

Pretty sure this is using the head.hackage patch.