talira

zlib (Haskell)

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

open sourceBSD-3-Clausefree

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.

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

Alternatives

The same job

These do what zlib (Haskell) does.

  1. XZ Utils A complete C99 implementation of the .xz file format

Compare zlib (Haskell) with the top 3