haskell-nix / hnix

A Haskell re-implementation of the Nix expression language
https://hackage.haskell.org/package/hnix
BSD 3-Clause "New" or "Revised" License
741 stars 114 forks source link

Build failure in `hnix-0.13.0` with GHC-9.0 / `template-haskell-2.17.0.0` #1074

Closed sjakobi closed 2 years ago

sjakobi commented 2 years ago
src/Nix/Expr/Types.hs:500:15: error:
    • Variable not in scope:
        unsafeCodeCoerce :: t0 m0 a0 -> TH.Code m (Fix NExprF)
    • Perhaps you meant one of these:
        ‘TH.unsafeCodeCoerce’ (imported from Language.Haskell.TH.Syntax),
        ‘TH.unsafeTExpCoerce’ (imported from Language.Haskell.TH.Syntax)
    |
500 |   liftTyped = unsafeCodeCoerce . lift
    |               ^^^^^^^^^^^^^^^^
Error: cabal: Failed to build hnix-0.13.0

As a Hackage trustee I have revised v0.13.0 to prevent users from encountering this error. See https://hackage.haskell.org/package/hnix-0.13.0/revisions/.

This issue is just FYI.