-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Enumerator interface for zlib compression -- -- zlib-enum is a stop-gap package to provide enumeratees for zlib -- compression/decompression. @package zlib-enum @version 0.2.2 module Codec.Zlib.Enum -- | Compress (deflate) a stream of ByteStrings. The -- WindowBits also control the format (zlib vs. gzip). compress :: MonadIO m => Int -> WindowBits -> Enumeratee ByteString ByteString m a -- | Decompress (inflate) a stream of ByteStrings. For example: -- --
--   run $ enumFile "test.z" $$ decompress defaultWindowBits $$ printChunks True
--   
decompress :: MonadIO m => WindowBits -> Enumeratee ByteString ByteString m a -- | Gzip compression with default parameters. gzip :: MonadIO m => Enumeratee ByteString ByteString m a -- | Gzip decompression with default parameters. ungzip :: MonadIO m => Enumeratee ByteString ByteString m a -- | This specifies the size of the compression window. Larger values of -- this parameter result in better compression at the expense of higher -- memory usage. -- -- The compression window size is the value of the the window bits raised -- to the power 2. The window bits must be in the range 8..15 -- which corresponds to compression window sizes of 256b to 32Kb. The -- default is 15 which is also the maximum size. -- -- The total amount of memory used depends on the window bits and the -- MemoryLevel. See the MemoryLevel for the details. data WindowBits :: * WindowBits :: Int -> WindowBits -- | The default WindowBits is 15 which is also the maximum size. defaultWindowBits :: WindowBits -- | Exception that can be thrown from the FFI code. The parameter is the -- numerical error code from the zlib library. Quoting the zlib.h file -- directly: -- -- data ZlibException :: *