syb icon indicating copy to clipboard operation
syb copied to clipboard

syb fails to compile with ghc 9.0.1 (alpha)

Open GeorgeCo opened this issue 5 years ago • 6 comments

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.

GeorgeCo avatar Oct 15 '20 00:10 GeorgeCo

issue is still true with ghc 9.0 rc1

GeorgeCo avatar Dec 30 '20 17:12 GeorgeCo

This has been resolved by #25, or am I missing sth?

amesgen avatar Jan 13 '21 23:01 amesgen

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?

konn avatar Jan 18 '21 14:01 konn

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)

amesgen avatar Jan 20 '21 21:01 amesgen

Great, thanks!

konn avatar Jan 21 '21 03:01 konn

Issue can be closed.

andreasabel avatar Feb 27 '21 09:02 andreasabel