-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Bindings to libbz2
--   
--   High-level bindings to libbz2 using c2hs and ByteString
@package bz2
@version 1.0.0.1


-- | High-level functions throw <a>BZError</a> on error.
module Codec.Compression.BZip

compress :: ByteString -> ByteString

-- | See <a>bzlib manual</a> for information on compression parameters.
compressWith :: CInt -> CInt -> ByteString -> ByteString

-- | Don't use this on pathological input; it may not be secure
decompress :: ByteString -> 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
