packages feed

ram 0.22.0 → 0.22.1

raw patch · 4 files changed

+11/−5 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,9 @@+## 0.22.1++ Use correct signatures for 'memset' and 'memcpy'+The WASM linker is more strict about function signatures matching, see https://releases.llvm.org/11.1.0/tools/lld/docs/WebAssembly.html#function-signatures++thanks @clinton-grc+ ## 0.22.0 + Added `slice :: ByteArray bs => bs -> Int -> Int -> Maybe bs`   and `unsafeSlice :: ByteArray bs => bs -> Int -> Int -> bs`
Data/Memory/PtrMethods.hs view
@@ -63,7 +63,7 @@  -- | Copy a set number of bytes from @src to @dst memCopy :: Ptr Word8 -> Ptr Word8 -> Int -> IO ()-memCopy dst src n = c_memcpy dst src (fromIntegral n)+memCopy dst src n = c_memcpy dst src (fromIntegral n) >>= \_ -> return () {-# INLINE memCopy #-}  -- | Set @n number of bytes to the same value @v@@ -114,7 +114,7 @@             loop (i+1) (acc .|. e)  foreign import ccall unsafe "memset"-    c_memset :: Ptr Word8 -> Word8 -> CSize -> IO ()+    c_memset :: Ptr Word8 -> Word8 -> CSize -> IO (Ptr Word8)  foreign import ccall unsafe "memcpy"-    c_memcpy :: Ptr Word8 -> Ptr Word8 -> CSize -> IO ()+    c_memcpy :: Ptr Word8 -> Ptr Word8 -> CSize -> IO (Ptr Word8)
README.md view
@@ -1,4 +1,4 @@-memory+ram ======  [![BSD](http://b.repl.ca/v1/license-BSD-blue.png)](http://en.wikipedia.org/wiki/BSD_licenses)
ram.cabal view
@@ -1,6 +1,6 @@ cabal-version:   3.0 name:            ram-version:         0.22.0+version:         0.22.1 synopsis:        memory and related abstraction stuff description:   This is a fork of memory. It's open to accept changes from anyone,