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

GHC 9.8 compatibility #1095

Closed locallycompact closed 8 months ago

locallycompact commented 8 months ago

Actually I think this might be a 9.6 problem. I'm not sure how to update this instance to deal with this error:

https://gitlab.horizon-haskell.net/package-sets/horizon-core/-/jobs/512984

hnix> src/Nix/Value.hs:145:10: error: [GHC-39999]
hnix>     • Could not deduce ‘Eq (NValueF p m a)’
hnix>         arising from the head of a quantified constraint
hnix>         arising from the superclasses of an instance declaration
hnix>       from the context: Eq a
hnix>         bound by a quantified context at src/Nix/Value.hs:145:10-26
hnix>     • In the instance declaration for ‘Eq1 (NValueF p m)’
hnix>     |
hnix> 145 | instance Eq1 (NValueF p m) where
hnix>     |          ^^^^^^^^^^^^^^^^^