zlib: Compression and decompression in the gzip and zlib formats

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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.


Versions 0.2, 0.3, 0.4,,,,,,,,,,,,,,,,,,, 0.6.2,,,,
Change log changelog
Dependencies base (>=4 && <4.16), bytestring (>=0.9 && <0.12), ghc-prim [details]
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>
Category Codec
Bug tracker https://github.com/haskell/zlib/issues
Source repo head: git clone https://github.com/haskell/zlib.git
Uploaded by topos at 2021-02-21T18:14:55Z





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.


Use pkg-config(1) to locate foreign zlib library.


Use the bundled zlib C sources. Requires pkg-config to be False. For windows, this is the default.


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


Maintainer's Corner

For package maintainers and hackage trustees