lzlib 0.3.1.2 → 0.3.2.0
raw patch · 3 files changed
+23/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Codec.Lzip: compressBest :: ByteString -> ByteString
+ Codec.Lzip: compressFast :: ByteString -> ByteString
Files
- CHANGELOG.md +4/−0
- lzlib.cabal +1/−1
- src/Codec/Lzip.hs +18/−2
CHANGELOG.md view
@@ -1,5 +1,9 @@ # lzlib +## 0.3.2.0++ * Add `compressBest` and `compressFast`+ ## 0.3.1.2 * Hopefully improved performance
lzlib.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: lzlib-version: 0.3.1.2+version: 0.3.2.0 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2019-2020 Vanessa McHale
src/Codec/Lzip.hs view
@@ -1,6 +1,8 @@ {-# LANGUAGE BangPatterns #-} module Codec.Lzip ( compress+ , compressBest+ , compressFast , compressWith , decompress , CompressionLevel (..)@@ -110,10 +112,24 @@ bsActual <- BS.packCStringLen (castPtr buf, fromIntegral bytesRead) loop decoder bss' maxSz (buf, bufSz) (acc ++ [bsActual]) --- | Defaults to 'Nine'+-- | Defaults to 'Six' {-# NOINLINE compress #-} compress :: BSL.ByteString -> BSL.ByteString-compress = compressWith Nine+compress = compressWith Six++-- | Alias for @'compressWith' 'Nine'@+--+-- @since 0.3.2.0+{-# NOINLINE compressBest #-}+compressBest :: BSL.ByteString -> BSL.ByteString+compressBest = compressWith Nine++-- | Alias for @'compressWith' 'Zero'@+--+-- @since 0.3.2.0+{-# NOINLINE compressFast #-}+compressFast :: BSL.ByteString -> BSL.ByteString+compressFast = compressWith Zero {-# NOINLINE compressWith #-} compressWith :: CompressionLevel -> BSL.ByteString -> BSL.ByteString