@hackage / zlib

Compression and decompression in the gzip and zlib formats

Latest0.7.1.1

About

Metadata

  • Last updated , by Bodigrim
  • License BSD-3-Clause
  • Maintained by: Duncan Coutts <duncan@community.haskell.org>, Andrew Lelechenko <andrew.lelechenko@gmail.com>, Emily Pillmore <emilypi@cohomolo.gy>, Herbert Valerio Riedel <hvr@gnu.org>

  • Lottery factor: 2

Links

Installation

Tested Compilers

  1. 9.12.2
  2. 9.10.2
  3. 9.8.4
  4. 9.6.7
  5. 9.4.8
  6. 9.2.8
  7. 9.0.2
  8. 8.10.7
  9. 8.8.4
  10. 8.6.5
  11. 8.4.4
  12. 8.2.2
  13. 8.0.2

Package Flags

Use the -f option with cabal commands to enable flags

    non-blocking-ffi (on by default)

    The (de)compression calls can sometimes take a long time, which prevents other Haskell threads running. Enabling this flag avoids this unfairness, but with greater overall cost.

    pkg-config (on by default)

    Use pkg-config executable to locate foreign zlib library.

    bundled-c-zlib (off by default)

    Use zlib-clib package with C sources instead of a system library. C sources are used for GHCJS and WASM unconditionally and on Windows unless pkg-config flag is on.

Readme

zlib CI Hackage

Compression and decompression in the gzip and zlib format

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.