| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Codec.Zlib.Enum
- compress :: MonadIO m => Int -> WindowBits -> Enumeratee ByteString ByteString m a
- decompress :: MonadIO m => WindowBits -> Enumeratee ByteString ByteString m a
- gzip :: MonadIO m => Enumeratee ByteString ByteString m a
- ungzip :: MonadIO m => Enumeratee ByteString ByteString m a
- data WindowBits :: * = WindowBits Int
- defaultWindowBits :: WindowBits
- data ZlibException :: *
Enumeratees
Arguments
| :: MonadIO m | |
| => Int | Compression level |
| -> WindowBits | Zlib parameter (see the zlib-bindings package as well as the zlib C library) |
| -> Enumeratee ByteString ByteString m a |
Compress (deflate) a stream of ByteStrings. The WindowBits also control
the format (zlib vs. gzip).
Arguments
| :: MonadIO m | |
| => WindowBits | Zlib parameter (see the zlib-bindings package as well as the zlib C library) |
| -> Enumeratee ByteString ByteString m a |
Decompress (inflate) a stream of ByteStrings. For example:
run $ enumFile "test.z" $$ decompress defaultWindowBits $$ printChunks True
gzip :: MonadIO m => Enumeratee ByteString ByteString m a #
Gzip compression with default parameters.
ungzip :: MonadIO m => Enumeratee ByteString ByteString m a #
Gzip decompression with default parameters.
Re-exported from zlib-bindings
data ZlibException :: * #
Instances