ram 0.20.0 → 0.20.1
raw patch · 3 files changed
+7/−8 lines, 3 filesdep +ramdep −memory
Dependencies added: ram
Dependencies removed: memory
Files
- CHANGELOG.md +5/−0
- Data/ByteArray/Types.hs +0/−6
- ram.cabal +2/−2
CHANGELOG.md view
@@ -1,3 +1,8 @@+## 0.20.1++ Remove `WITH_BYTESTRING_SUPPORT` CPP flag. `ByteString` instances for+ `ByteArrayAccess` and `ByteArray` are now always compiled in, since+ `bytestring` is an unconditional dependency.+ ## 0.20 + Drop Data.Internal.Memory.Deepseq module to prevent confusion. we can just use the one from deepseq.
Data/ByteArray/Types.hs view
@@ -5,7 +5,6 @@ -- Stability : stable -- Portability : Good ---{-# LANGUAGE CPP #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE TypeOperators #-}@@ -18,12 +17,9 @@ import Foreign.Ptr import Data.Monoid--#ifdef WITH_BYTESTRING_SUPPORT import qualified Data.ByteString as Bytestring (length) import qualified Data.ByteString.Internal as Bytestring import Foreign.ForeignPtr (withForeignPtr)-#endif import Data.Memory.PtrMethods (memCopy) @@ -52,7 +48,6 @@ -> (Ptr p -> IO a) -> IO (a, ba) -#ifdef WITH_BYTESTRING_SUPPORT instance ByteArrayAccess Bytestring.ByteString where length = Bytestring.length withByteArray (Bytestring.PS fptr off _) f = withForeignPtr fptr $ \ptr -> f $! (ptr `plusPtr` off)@@ -62,5 +57,4 @@ fptr <- Bytestring.mallocByteString sz r <- withForeignPtr fptr (f . castPtr) return (r, Bytestring.PS fptr 0 sz)-#endif
ram.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: ram-version: 0.20.0+version: 0.20.1 synopsis: memory and related abstraction stuff description: This is a fork of memory. It's open to accept changes from anyone,@@ -102,7 +102,7 @@ build-depends: , base <5 , bytestring- , memory+ , ram , QuickCheck , tasty