bz2-1.0.1.0: Bindings to libbz2

Safe HaskellNone
LanguageHaskell2010

Codec.Compression.BZip

Contents

Description

High-level functions throw BZError on error.

Since: 0.1.1.0

Synopsis

High-level functions.

compress :: ByteString -> ByteString Source #

Since: 0.1.1.0

compressWith Source #

Arguments

:: CInt

Block size (1-9)

-> CInt

Work factor (0-250)

-> 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

Miscellany