Apache-2.0 licensed by Anantha Kumaran
This version can be pinned in stack with:hopfli-0.2.2.1@sha256:6a4abed1bf041c875cb66a0c53c63826dff13902a35f1e7b5a3a941a8bb6d284,2539

Module documentation for 0.2.2.1

Depends on 3 packages(full list with versions):

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.

Example

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

Changes

Changelog

0.2.2.1

  • Relaxed Quickcheck upper bound.

0.2.2

  • Update Zopfli C files

0.2.1.1

  • Updated dependency bounds