diff --git a/Codec/Compression/Zlib/ByteStringCompat.hs b/Codec/Compression/Zlib/ByteStringCompat.hs index 5cfe8b8..6d882f8 100644 --- a/Codec/Compression/Zlib/ByteStringCompat.hs +++ b/Codec/Compression/Zlib/ByteStringCompat.hs @@ -14,8 +14,7 @@ import Foreign.ForeignPtr (ForeignPtr) import GHC.ForeignPtr (plusForeignPtr) #else import GHC.ForeignPtr (ForeignPtr(ForeignPtr)) -import GHC.Types (Int (..)) -import GHC.Prim (plusAddr#) +import GHC.Exts (Int (..), plusAddr#) #endif mkBS :: ForeignPtr Word8 -> Int -> Int -> ByteString diff --git a/zlib.cabal b/zlib.cabal index 1f30265..5865de0 100644 --- a/zlib.cabal +++ b/zlib.cabal @@ -95,8 +95,6 @@ library build-depends: base >= 4.3 && < 4.20, bytestring >= 0.9 && < 0.13 - if impl(ghc < 8.0.3) - build-depends: ghc-prim build-tools: hsc2hs >= 0.67 && < 0.69 -- GHC 7 ships hsc2hs-0.67