Compression and decompression in the gzip and zlib formats

Version on this page:
Stackage Nightly 2017-08-20:
LTS Haskell 9.1:
Stackage Nightly 2017-08-20:
Latest on Hackage:
BSD3 licensed and maintained by Duncan Coutts

Module documentation for

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.

Changes 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
Depends on:
Used by 139 packages:
Agda, Allure, BCMtools, Biobase, BiobaseInfernal, DefendTheKing, Extra, Gamgine, HPDF, Hayoo, JYU-Utils, JuicyPixels, LambdaHack, Lucu, MutationOrder, Rlang-QQ, SoccerFun, Unixutils, ajhc, ampersand, apotiki, ascii-vector-avc, asil, bamboo, bamboo-theme-mini-html5, bbi, biohazard, bitmaps, black-jewel, cabal-dev, cabal-install, cabal-install-ghc72, cabal-install-ghc74, cabal-sign, cabal2spec, cblrepo, chatter, cloudi, cnc-spec-compiler, codex, concraft, concrete-haskell, creatur, darcs, darcs-benchmark, darcs-beta, darcswatch, debian, definitive-graphics, detrospector, diagrams-pgf, dictionaries, docker, easyrender, forml, ght, git, gitit, gpah, hGelf, hOpenPGP, hPDB, hack-middleware-gzip, hackage-proxy, hackage-repo-tool, hackage-security, hackage-security-HTTP, hackage-server, hackport, hakaru, happstack-server, harchive, hashed-storage, haskell-pdf-presenter, haskell-platform-test, haxparse, hellage, hit, hlibgit2, hmp3, hnn, hoogle, hopfli, hpdft, hspear, htar, htiled, http-conduit-downloader, http-encodings, hup, hyphenation, ide-backend-server, jvm-parser, kafka-client, keter, lambdabot-core, lambdabot-misc-plugins, lambdabot-utils, linden, milena, minecraft-data, moan, nkjp, openexr-write, openpgp, pandoc, parsestar, png-file, pngload, pngload-fixed, raft, rakhana, scholdoc, scion-browser, sr-extra, stack, stackage-curator, stackage-metadata, stdf, streaming-commons, streaming-osm, sync-mht, task-distribution, tttool, wai-app-static, wai-extra, webify, webserver, wikipedia4epub, woffex, xlsx, yackage, yesod-bin, yql, zip-archive, zip-stream, zlib-bindings, zlib-lens, zoom-cache
comments powered byDisqus