zlib: Compression and decompression in the gzip and zlib formats

[ bsd3, codec, library ] [ Propose Tags ] [ Report a vulnerability ]

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.


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
non-blocking-ffi

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.

Enabled
bundled-c-zlib

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.

Disabled
Automatic Flags
NameDescriptionDefault
pkg-config

Use pkg-config executable to locate foreign zlib library.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.2, 0.3, 0.4, 0.4.0.1, 0.4.0.2, 0.4.0.3, 0.4.0.4, 0.5.0.0, 0.5.2.0, 0.5.3.1, 0.5.3.2, 0.5.3.3, 0.5.4.0, 0.5.4.1, 0.5.4.2, 0.6.0.0, 0.6.0.1, 0.6.0.2, 0.6.1.0, 0.6.1.1, 0.6.1.2, 0.6.2, 0.6.2.1, 0.6.2.2, 0.6.2.3, 0.6.3.0, 0.7.0.0, 0.7.1.0
Change log changelog.md
Dependencies base (>=4.9 && <4.22), bytestring (>=0.9 && <0.13), zlib-clib (<2) [details]
Tested with ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.4, ghc ==8.10.7, ghc ==9.0.2, ghc ==9.2.8, ghc ==9.4.8, ghc ==9.6.5, ghc ==9.8.2, ghc ==9.10.1
License BSD-3-Clause
Copyright (c) 2006-2016 Duncan Coutts
Author Duncan Coutts <duncan@community.haskell.org>
Maintainer Duncan Coutts <duncan@community.haskell.org>, Andrew Lelechenko <andrew.lelechenko@gmail.com>, Emily Pillmore <emilypi@cohomolo.gy>, Herbert Valerio Riedel <hvr@gnu.org>
Revised Revision 2 made by ErikDeCastroLopo at 2024-11-24T20:39:41Z
Category Codec
Bug tracker https://github.com/haskell/zlib/issues
Source repo head: git clone https://github.com/haskell/zlib.git
Uploaded by Bodigrim at 2024-04-24T22:06:31Z
Distributions Arch:0.6.3.0, Debian:0.6.2.2, Fedora:0.6.3.0, FreeBSD:0.5.4.2, LTSHaskell:0.7.1.0, NixOS:0.6.3.0, Stackage:0.7.1.0, openSUSE:0.6.3.0
Reverse Dependencies 185 direct, 7895 indirect [details]
Downloads 335824 total (578 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for zlib-0.7.1.0

[back to package description]

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.