Safe Haskell | Safe-Infered |
---|
Provides interface to the zlib
library.
- compressZlib :: ByteString -> ByteString
- decompressZlib :: (MonadError e m, FromString e) => ByteString -> m ByteString
Documentation
compressZlib :: ByteString -> ByteStringSource
Compresses a lazy bytestring.
decompressZlib :: (MonadError e m, FromString e) => ByteString -> m ByteStringSource
Decompresses a lazy bytestring, throwing decoding errors using
throwError
.