pipes-bzip-0.2.0.4: Streaming compression/decompression via pipes.

Safe HaskellNone
LanguageHaskell98

Pipes.BZip

Synopsis

Documentation

compress Source

Arguments

:: MonadSafe m 
=> CompressParams

Compress parameter

-> Producer ByteString m () 
-> Producer ByteString m () 

decompress :: MonadSafe m => DecompressParams -> Producer ByteString m () -> Producer ByteString m () Source

Decompress a stream of ByteStrings.

data CompressParams Source

Compression parameters

Constructors

CompressParams 

Fields

cpBlockSize :: Int

Compress level [1..9]. default is 9.

cpVerbosity :: Int

Verbosity mode [0..4]. default is 0.

cpWorkFactor :: Int

Work factor [0..250]. default is 30.

data DecompressParams Source

Decompression parameters

Constructors

DecompressParams 

Fields

dpVerbosity :: Int

Verbosity mode [0..4]. default is 0

dpSmall :: Bool

If True, use an algorithm uses less memory but slow. default is False

def :: Default a => a

The default value for this type.