hopfli: Bidings to Google's Zopfli compression library

[ apache, codec, library ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2.0.0, 0.2.1.0, 0.2.1.1, 0.2.2.1
Dependencies base (>=4 && <5), 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 repo head: git clone https://github.com/ananthakumaran/hopfli
Uploaded by contivero at 2017-03-02T15:19:02Z
Distributions LTSHaskell:0.2.2.1, NixOS:0.2.2.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 4949 total (28 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-03-02 [all 1 reports]

Readme for hopfli-0.2.1.1

[back to package description]

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.

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