Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
High-level functions throw BZError
on error.
Since: 0.1.1.0
Synopsis
- compress :: ByteString -> ByteString
- compressWith :: CInt -> CInt -> ByteString -> ByteString
- decompress :: ByteString -> ByteString
- decompressErr :: ByteString -> Either BZError ByteString
- data BZError
- bZ2BzlibVersion :: String
High-level functions.
compress :: ByteString -> ByteString Source #
Since: 0.1.1.0
:: CInt | Block size ( |
-> CInt | Work factor ( |
-> ByteString | |
-> ByteString |
See bzlib manual for information on compression parameters.
Since: 0.1.1.0
decompress :: ByteString -> ByteString Source #
Don't use this on pathological input; it may not be secure
This does not handle nested streams
Since: 0.1.1.0
decompressErr :: ByteString -> Either BZError ByteString Source #
Return an error rather than throwing an exception.
Since: 1.0.1.0
Errors
BzConfigError | |
BzOutbuffFull | |
BzUnexpectedEof | |
BzIoError | |
BzDataErrorMagic | |
BzDataError | |
BzMemError | |
BzParamError | |
BzSequenceError | |
BzOk | |
BzRunOk | |
BzFlushOk | |
BzFinishOk | |
BzStreamEnd |
Instances
Enum BZError Source # | |
Exception BZError Source # | |
Defined in Codec.Compression.BZip.Foreign.Common toException :: BZError -> SomeException # fromException :: SomeException -> Maybe BZError # displayException :: BZError -> String # | |
Show BZError Source # | |
Eq BZError Source # | |