Compression and decompression in the gzip and zlib formats

Version on this page:
LTS Haskell 20.23:
Stackage Nightly 2023-05-28:
Latest on Hackage:

See all snapshots zlib appears in

BSD-3-Clause licensed and maintained by Duncan Coutts
This version can be pinned in stack with:zlib-,2326

Module documentation for

  • Codec
    • Codec.Compression
      • Codec.Compression.GZip
      • Codec.Compression.Zlib
        • Codec.Compression.Zlib.Internal
        • Codec.Compression.Zlib.Raw

This package provides a pure interface for compressing and decompressing streams of data represented as lazy ByteStrings. It uses the zlib C library so it has high performance. It supports the "zlib", "gzip" and "raw" compression formats.

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 zlib feature set.