-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Bindings to libbz2 -- -- High-level bindings to libbz2 via ByteString @package bz2 @version 1.0.1.2 -- | High-level functions throw BZError on error. module Codec.Compression.BZip compress :: ByteString -> ByteString -- | See bzlib manual for information on compression parameters. compressWith :: CInt -> CInt -> ByteString -> ByteString -- | Don't use this on pathological input; it may not be secure -- -- This does not handle nested streams decompress :: ByteString -> ByteString -- | Return an error rather than throwing an exception. decompressErr :: ByteString -> Either BZError ByteString data BZError BzConfigError :: BZError BzOutbuffFull :: BZError BzUnexpectedEof :: BZError BzIoError :: BZError BzDataErrorMagic :: BZError BzDataError :: BZError BzMemError :: BZError BzParamError :: BZError BzSequenceError :: BZError BzOk :: BZError BzRunOk :: BZError BzFlushOk :: BZError BzFinishOk :: BZError BzStreamEnd :: BZError bZ2BzlibVersion :: String