Portability | portable (H98 + FFI) |
---|---|
Stability | experimental |
Maintainer | duncan.coutts@worc.ox.ac.uk |
Compression and decompression of data streams in the raw deflate format.
The format is described in detail in RFC #1951: http://www.ietf.org/rfc/rfc1951.txt
See also the zlib home page: http://zlib.net/
- compress :: ByteString -> ByteString
- compressWith :: CompressionLevel -> ByteString -> ByteString
- data CompressionLevel
- decompress :: ByteString -> ByteString
Compression
data CompressionLevel Source
Control amount of compression. This is a trade-off between the amount of compression and the time and memory required to do the compression.
DefaultCompression | The default compression level is 6 (that is, biased towards high compression at expense of speed). |
NoCompression | No compression, just a block copy. |
BestSpeed | The fastest compression method (less compression) |
BestCompression | The slowest compression method (best compression). |
CompressionLevel Int | A specific compression level between 1 and 9. |