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

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

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
Change log CHANGELOG.md
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>
Revised Revision 1 made by contivero at 2018-01-15T10:45:16Z
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-06-17T21:14:15Z
Distributions NixOS:0.2.2.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 4967 total (14 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-06-17 [all 1 reports]

Readme for hopfli-0.2.2.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.

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