| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Lzip
Synopsis
- compress :: ByteString -> ByteString
- compressBest :: ByteString -> ByteString
- compressFast :: ByteString -> ByteString
- compressWith :: CompressionLevel -> ByteString -> ByteString
- compressWithSz :: CompressionLevel -> ByteString -> Int -> ByteString
- decompress :: ByteString -> ByteString
- compressFile :: FilePath -> IO ByteString
- data CompressionLevel
Documentation
compress :: ByteString -> ByteString Source #
Defaults to Six
compressBest :: ByteString -> ByteString Source #
Alias for compressWith Nine
Since: 0.3.2.0
compressFast :: ByteString -> ByteString Source #
Alias for compressWith Zero
Since: 0.3.2.0
compressWith :: CompressionLevel -> ByteString -> ByteString Source #
Arguments
| :: CompressionLevel | |
| -> ByteString | |
| -> Int | Size of compression window |
| -> ByteString |
Since: 1.0.0.0
decompress :: ByteString -> ByteString Source #
This does not do any error recovery; for that you should use lziprecover.
Doesn't work on empty ByteStrings
compressFile :: FilePath -> IO ByteString Source #
Since: 1.0.0.0