The hopfli package

[Tags:apache, library, test]

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


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.2.0.0, 0.2.1.0, 0.2.1.1, 0.2.2.1
Change log CHANGELOG.md
Dependencies base (==4.*), bytestring (>=0.9 && <0.12), zlib (>=0.5.4 && <0.7) [details]
License Apache-2.0
Author Anantha Kumaran <ananthakumaran@gmail.com>
Maintainer Cristian Adrián Ontivero <cristianontivero@gmail.com>
Category Codec
Home page https://github.com/ananthakumaran/hopfli
Bug tracker https://github.com/ananthakumaran/hopfli/issues
Source repository head: git clone https://github.com/ananthakumaran/hopfli
Uploaded Sat Jun 17 21:14:15 UTC 2017 by contivero
Distributions LTSHaskell:0.2.2.1, NixOS:0.2.2.1, Stackage:0.2.2.1, Tumbleweed:0.2.1.1
Downloads 1048 total (93 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2017-06-17 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for hopfli

Readme for hopfli-0.2.2.1

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