Bidings to Google's Zopfli compression library https://github.com/ananthakumaran/hopfli

Version on this page:
LTS Haskell 13.23:
Stackage Nightly 2019-05-27:
Latest on Hackage:

See all snapshots hopfli appears in

Apache-2.0 licensed by Anantha Kumaran
Maintained by Cristian Adrián Ontivero

Module documentation for

There are no documented modules for this package.

Hopfli - Haskell bindings to the Zopfli library

Build Status Hackage-Deps Hackage License

Hopfli provides a pure interface to compress data using the Zopfli library.

Zopfli is a compression library released by Google in 2013, which can output either a raw DEFLATE stream, or one wrapped into zlib or gzip formats. Under default settings, the output produced by Zopfli is 3.7–8.3% smaller than that of gzip -9, though the algorithm is 81 times slower.

Zopfli is distributed under the Apache 2.0 license.


import           Codec.Compression.Hopfli
import           Data.ByteString
import           System.IO                (stdin, stdout)

main :: IO ()
main = hGetContents stdin >>= hPut stdout . compressWith defaultCompressOptions GZIP
runGhc example.hs < README.md > README.md.gz



  • Relaxed Quickcheck upper bound.


  • Update Zopfli C files

  • Updated dependency bounds
Depends on 3 packages:
Used by 2 packages:
comments powered byDisqus