Closed RyanGlScott closed 6 years ago
You can just do:
if !impl(ghc >= 8.0)
build-depends:
semigroups >= 0.11 && < 0.19
in cabal file and won't need any CPP magic
Actually, sorry, that might not quite help in the superclass case
I merged a slightly modified version. Thanks.
Now that
Semigroup
is a superclass ofMonoid
(and exported by thePrelude
) in GHC 8.4, some minor changes have to be made tohaskell-src-exts
's internals to make it compile.