Compression and decompression in the gzip and zlib formats

Version on this page:0.6.2
LTS Haskell 13.22:0.6.2
Stackage Nightly 2019-05-23:0.6.2
Latest on Hackage:0.6.2

See all snapshots zlib appears in

BSD-3-Clause licensed and maintained by Duncan Coutts

Module documentation for 0.6.2

There are no documented modules for this package.

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.


0.6.2 Herbert Valerio Riedel <hvr@gnu.org> March 2018

* New cabal flag 'pkg-config' for discovering 'zlib` via pkg-config(1) (#16)
* Use CApiFFI where available for cross-compile friendliness (#14)
* Change the window bits range from 8..15 to 9..15 (#11) Herbert Valerio Riedel <hvr@gnu.org> October 2016

* Fix a segfault when reading the stream multithreaded, #7
* New experimental cabal flag 'non-blocking-ffi' for 'safe' ffi calls Duncan Coutts <duncan@community.haskell.org> April 2015

* Fixed building with GHC 7.0 and 7.2 Duncan Coutts <duncan@community.haskell.org> April 2015

* Fixed building with GHC 7.0 and 7.2 Duncan Coutts <duncan@community.haskell.org> April 2015

* Support for concatenated gzip files (multiple back-to-back streams) Duncan Coutts <duncan@community.haskell.org> April 2015

* Fixed building with older GHC
* Fixed warnings with new GHC
* Fixed building on Windows
* Fixed testsuite Duncan Coutts <duncan@community.haskell.org> April 2015

* New incremental interface for compression and decompression
* Provide access to unconsumed trailing data
* Simplified structured error type, and instance of Exception
* Updated bundled zlib C code to 1.2.8 (used on Windows)
* Fixed memory leak of zlib z_stream C structure
* More derivied instances (Eq, Show, Typeable, Generic) Duncan Coutts <duncan@community.haskell.org> November 2014

* Builds with GHC 7.10 Duncan Coutts <duncan@community.haskell.org> February 2013

* Force tail of input when finished decompressing, to help lazy IO Duncan Coutts <duncan@community.haskell.org> September 2012

* New support for zlib custom dictionaries
comments powered byDisqus