bzlib

Compression and decompression in the bzip2 format

LTS Haskell 24.49:0.5.2.0
Stackage Nightly 2026-07-10:0.5.3.0
Latest on Hackage:0.5.3.0

See all snapshots bzlib appears in

BSD-3-Clause licensed and maintained by Duncan Coutts
This version can be pinned in stack with:bzlib-0.5.3.0@sha256:ef79faffc1b56f7b5d38ba12473fa48067ee21bd4428fda29f80057f6f7d9d3f,2383

Module documentation for 0.5.3.0

Depends on 2 packages(full list with versions):

bzlib Hackage

Compression and decompression in the bzip2 format

This package provides a pure interface for compressing and decompressing streams of data represented as lazy ByteStrings. It uses the bz2 C library so it has high performance.

It provides a convenient high level API suitable for most tasks and for the few cases where more control is needed it provides access to the full bzip2 feature set.

Changes

0.5.3.0

  • Add DecompressError to export list of Codec.Compression.BZip.Internal.
  • Copy some documentation from zlib.
  • Add argument documentation to functions in Codec.Compression.BZip.Internal.
  • Treat DataErrorMagic same as DataError by converting them to DecompressStreamError.

0.5.2.0

  • Fix CVE-2019-12900 by updating C sources to 1.0.8.
  • Port incremental interface from zlib.

0.5.1.0

  • Add instance MonadFail Stream.