Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ganeti.Codec
Description
Provides interface to the zlib
library.
Synopsis
- compressZlib :: ByteString -> ByteString
- decompressZlib :: MonadError String m => ByteString -> m ByteString
Documentation
compressZlib :: ByteString -> ByteString #
Compresses a lazy bytestring.
decompressZlib :: MonadError String m => ByteString -> m ByteString #
Decompresses a lazy bytestring, throwing decoding errors using
throwError
.