packages feed

lz4-conduit 0.2 → 0.3

raw patch · 5 files changed

+12/−8 lines, 5 filesdep ~QuickCheckdep ~binarydep ~conduitPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: QuickCheck, binary, conduit, conduit-extra, resourcet

API changes (from Hackage documentation)

Files

Data/Conduit/LZ4.hsc view
@@ -40,7 +40,7 @@ foreign import ccall unsafe "lz4.h LZ4_decompress_safe_usingDict"   c_decompressSafeUsingDict :: CString -> Ptr Word8 -> CInt -> CInt -> Ptr Word8 -> CInt -> IO CInt --- | Compress a Data.ByteString stream using lz4 stream compression+-- | Compress a Data.ByteString stream (< 2GB / element) using lz4 stream compression compress   :: MonadResource m   => Maybe Int -- ^ Acceleration value. The higher the faster and less effective!
Main/Test.hs view
@@ -11,9 +11,12 @@ import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as BSL -prop_lz4_identity (NonNegative a) (Positive n) (Positive m) (ABS bs) = ioProperty $ do+prop_lz4_identity (NonNegative a) (Positive n') (Positive m') (ABS10M bs) = ioProperty $ do   res <- runResourceT $ yield bs $$ rechunk n =$= compress (Just a) =$= rechunk m =$= decompress =$= CL.consume   return (bs == BS.concat res)+  where+  n = max 64 n'+  m = max 64 m'  prop_rechunk_identity (Positive n) (ABS bs) = runConduitPure $ do   res <- yield bs $$ rechunk n =$= CL.consume@@ -37,5 +40,5 @@  main :: IO () main = do-  res <- $quickCheckAll+  res <- $forAllProperties (quickCheckWithResult (stdArgs {maxSuccess = 10000}))   when (not res) exitFailure
README.md view
@@ -1,6 +1,7 @@ # LZ compression for Data.Conduit  This library uses https://github.com/lz4/lz4.git to implement an lz4 compression conduit in stream mode. Note that the resulting format is custom. The package comes with an executable that is compatible.+Note that this library does not support bytestring chunks of more then 2GB, i.e, it does not function correctly if a bytestring > 2GB is send through the conduit.  # Installation 
lz4-conduit.cabal view
@@ -1,5 +1,5 @@ name:                lz4-conduit-version:             0.2+version:             0.3 synopsis:            LZ4 compression for conduits description:   lz4 compression for conduits, using https://github.com/lz4/lz4@@ -27,7 +27,7 @@   hs-source-dirs:  .   exposed-modules: Data.Conduit.LZ4   build-depends:-    base >= 4.9 && < 5, conduit >= 1.2 && < 1.3, bytestring >=0.10 && <0.11, resourcet >= 1.1 && <1.2, mtl >= 2.2 && <2.3, binary >= 0.8 && <0.9+    base >= 4.9 && < 5, conduit >= 1.2 && < 1.4, bytestring >=0.10 && <0.11, resourcet >= 1.1 && <1.3, mtl >= 2.2 && <2.3, binary >= 0.8 && <0.10    c-sources:       c/lz4.c, c/lz4.h   include-dirs:    c@@ -39,7 +39,7 @@   hs-source-dirs:  Main   main-is:         LZ4.hs   build-depends:-    lz4-conduit, base >= 4.9 && < 5, conduit >= 1.2 && < 1.3, conduit-extra >= 1.1 && <1.2, resourcet >= 1.1 && <1.2+    lz4-conduit, base >= 4.9 && < 5, conduit >= 1.2 && < 1.4, conduit-extra >= 1.2 && <1.4, resourcet >= 1.1 && <1.3   ghc-options:     -Wall   default-language: Haskell2010 @@ -47,7 +47,7 @@   hs-source-dirs:  Main   main-is:         Test.hs   build-depends:-    lz4-conduit, base >= 4.9 && < 5, conduit >= 1.2 && < 1.3, resourcet >= 1.1 && <1.2, QuickCheck >= 2.8 && <2.9, bytestring >= 0.10 && <0.11, bytestring-arbitrary >= 0.1 && <0.2+    lz4-conduit, base >= 4.9 && < 5, conduit >= 1.2 && < 1.4, resourcet >= 1.1 && <1.3, QuickCheck >= 2.8 && <2.12, bytestring >= 0.10 && <0.11, bytestring-arbitrary >= 0.1 && <0.2   default-language: Haskell2010   type:            exitcode-stdio-1.0 
stack.yaml view
@@ -15,7 +15,7 @@ # resolver: #  name: custom-snapshot #  location: "./custom-snapshot.yaml"-resolver: lts-7.14+resolver: lts-11.1  # User packages to be built. # Various formats can be used as shown in the example below.