Closed danwdart closed 2 years ago
This workaround Nix derivation override helps:
{
memory = (self.callHackage "memory" "0.15.0" {}).overrideDerivation(self: {
prePatch = ''
sed -zi 's/import\(\s\+\)GHC.Prim/import\1GHC.Prim hiding (unsafeCoerce#)\nimport\1GHC.Exts (unsafeCoerce#)/' Data/ByteArray/Bytes.hs
sed -zi 's/import\(\s\+\)GHC.Prim/import\1GHC.Prim hiding (unsafeCoerce#)\nimport\1GHC.Exts (unsafeCoerce#)/' Data/ByteArray/ScrubbedBytes.hs
'';
});
}
As a Hackage trustee I have made a revision to v0.15.0 to prevent it from building with GHC 9.0: http://hackage.haskell.org/package/memory-0.15.0/revisions/
Also note that this PR is intended to fix the issue: https://github.com/vincenthz/hs-memory/pull/81
The v0.16.0 release builds with GHC 9.0.1: http://hackage.haskell.org/package/memory-0.16.0
Thanks @vincenthz! :)
@danwdart This can be closed.