# zlib (Haskell)

> Haskell compression and decompression in the gzip and zlib formats over lazy ByteStrings

Source: https://talira.ai/catalog/zlib-haskell-bhb2nw5s
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / compression](https://talira.ai/categories/libraries/compression), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Duncan Coutts](https://talira.ai/orgs/duncan-coutts.md)

The Haskell zlib package gives a pure interface for compressing and decompressing streams of data held as lazy ByteStrings, in the zlib, gzip and raw formats. It binds the zlib C library for speed, with a high-level API for most tasks and access to the full zlib feature set when more control is needed. It's maintained in the haskell organisation on GitHub.

## Links

- GitHub: https://github.com/haskell/zlib

## Problems it solves

- gzip or gunzip data in a Haskell program
- decompress a zlib stream lazily in Haskell
- compress HTTP responses from my Haskell web server

## Features

- pure compression and decompression of lazy ByteStrings
- zlib, gzip and raw deflate formats
- a simple high-level API plus access to zlib's full feature set
- backed by the zlib C library for speed

## Trust

Overall: 0.39 out of 1.
Signals: maintenance 0.65, adoption 0.32, momentum 0.03, community 0.56, backing 0.30, extensibility 0.00.

- last commit 16 days ago
- 7 commits in the last 90 days
- 39 GitHub stars
- 24 contributors
- backed by Duncan Coutts

## Alternatives

- [XZ Utils](https://talira.ai/catalog/xz-utils-g2ym9dzd.md): A complete C99 implementation of the .xz file format

## Sources

[^1]: https://github.com/haskell/zlib#readme (checked 28 Nov 2026)
[^2]: https://github.com/haskell/zlib/blob/master/zlib/LICENSE (checked 28 Nov 2026)
