syb fails to compile with ghc 9.0.1 (alpha)
cabal install syb --allow-new ... [ 7 of 16] Compiling Data.Generics.Twins ( src/Data/Generics/Twins.hs, dist/build/Data/Generics/Twins.o, dist/build/Data/Generics/Twins.dyn_o )
src/Data/Generics/Twins.hs:290:58: error:
• Couldn't match type: b0 -> Ordering
with: forall a3. Data a3 => a3 -> Ordering
Expected: a2 -> GenericQ Ordering
Actual: a2 -> b0 -> Ordering
• In the first argument of ‘gzipWithQ’, namely ‘gcompare'’
In the first argument of ‘mconcat’, namely
‘(gzipWithQ gcompare' x y)’
In the second argument of ‘mappend’, namely
‘mconcat (gzipWithQ gcompare' x y)’
|
290 | nX compare nY mappend mconcat (gzipWithQ gcompare' x y)
| ^^^^^^^^^
cabal: Failed to build syb-0.7.1. See the build log above for details.
issue is still true with ghc 9.0 rc1
This has been resolved by #25, or am I missing sth?
The current master branch compiles with GHC 9.0.1 on my environment (macOS), great! By the way, is there any schedule for uploading a new version with GHC 9 support on Hackage?
0.7.2.1 has been released with GHC 9 compat: https://hackage.haskell.org/package/syb-0.7.2.1
(note that I took no part in that, just a remark that this issue can be closed if I am not mistaken)
Great, thanks!
Issue can be closed.