lzlib 0.3.0.5 → 0.3.1.0
raw patch · 5 files changed
+14/−8 lines, 5 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Codec.Lzip.Raw: lZApiVersion :: Integral a => a
Files
- CHANGELOG.md +4/−0
- lzlib.cabal +1/−1
- src/Codec/Lzip.hs +2/−6
- src/Codec/Lzip/Raw.chs +6/−0
- stack.yaml +1/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # lzlib +## 0.3.1.0++ * Export `lZApiVersion`+ ## 0.3.0.5 * `bracket` things better
lzlib.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: lzlib-version: 0.3.0.5+version: 0.3.1.0 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2019 Vanessa McHale
src/Codec/Lzip.hs view
@@ -71,13 +71,11 @@ lZDecompressClose decoder *> free buf - res <- bracket+ BSL.fromChunks <$> bracket setup cleanup (\(decoder, buf, bufMax) -> loop decoder bss bufMax (buf, sz) mempty) - pure (BSL.fromChunks res)- where loop :: LZDecoderPtr -> [BS.ByteString] -> Int -> (Ptr UInt8, Int) -> [BS.ByteString] -> IO [BS.ByteString] loop decoder bss maxSz (buf, bufSz) !acc = do@@ -133,12 +131,10 @@ lZCompressClose encoder *> free newBytes - res <- bracket+ BSL.fromChunks <$> bracket setup cleanup (\(encoder, newBytes) -> loop encoder bss (newBytes, delta) 0 mempty)-- pure (BSL.fromChunks res) where loop :: LZEncoderPtr -> [BS.ByteString] -> (Ptr UInt8, Int) -> Int -> [BS.ByteString] -> IO [BS.ByteString]
src/Codec/Lzip/Raw.chs view
@@ -49,6 +49,8 @@ , lZDecompressMemberPosition , lZDecompressTotalInSize , lZDecompressTotalOutSize+ -- * Macros+ , lZApiVersion ) where import Foreign.C.Types@@ -56,6 +58,10 @@ #include <stdint.h> #include <lzlib.h>++-- | @since 0.3.1.0+lZApiVersion :: Integral a => a+lZApiVersion = {# const LZ_API_VERSION #} type UInt8 = {# type uint8_t #} {#typedef uint8_t UInt8#}
stack.yaml view
@@ -1,5 +1,5 @@ ----resolver: lts-14.17+resolver: lts-14.18 ghc-options: {"$locals": -ddump-to-file -ddump-hi} packages: - '.'