Skip to content

Commit

Permalink
Depend on ghc-prim less
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Oct 30, 2023
1 parent 6ef52e0 commit fdff08e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Codec/Compression/Zlib/ByteStringCompat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions zlib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ library

build-depends: base >= 4.3 && < 4.20,
bytestring >= 0.9 && < 0.13
if impl(ghc < 8.0.3)
build-depends: ghc-prim
if impl(ghc < 7.6)
build-depends: ghc-prim < 0.3

build-tools: hsc2hs >= 0.67 && < 0.69
-- GHC 7 ships hsc2hs-0.67
Expand Down

0 comments on commit fdff08e

Please sign in to comment.