packages feed

hopfli-0.2.2.1: hopfli.cabal

name:                hopfli
version:             0.2.2.1
license:             Apache-2.0
license-file:        LICENSE
author:              Anantha Kumaran <ananthakumaran@gmail.com>
maintainer:          Cristian Adrián Ontivero <cristianontivero@gmail.com>
homepage:            https://github.com/ananthakumaran/hopfli
bug-reports:         https://github.com/ananthakumaran/hopfli/issues
synopsis:            Bidings to Google's Zopfli compression library
category:            Codec
build-type:          Simple
cabal-version:       >=1.10
extra-source-files:  README.md
                     CHANGELOG.md
description:
    Hopfli provides a pure interface to compress data using the Zopfli library
    algorithm.

source-repository head
  type: git
  location: https://github.com/ananthakumaran/hopfli

library
  hs-source-dirs:    src
  default-language:  Haskell2010
  exposed-modules:   Codec.Compression.Hopfli
  other-modules:     Codec.Compression.Hopfli.Raw
  ghc-options:       -O2 -Wall -fwarn-tabs -fwarn-unused-do-bind
  build-depends:     base       >=4     && <5
                   , bytestring >=0.9   && <0.12
                   , zlib       >=0.5.4 && <0.7
  include-dirs:      src/cbits
  c-sources:         src/cbits/blocksplitter.c src/cbits/cache.c src/cbits/deflate.c
                     src/cbits/gzip_container.c src/cbits/hash.c src/cbits/katajainen.c
                     src/cbits/lz77.c src/cbits/squeeze.c src/cbits/tree.c src/cbits/util.c
                     src/cbits/zlib_container.c src/cbits/zopfli_lib.c
  includes:          blocksplitter.h, cache.h, deflate.h, gzip_container.h,
                     hash.h, katajainen.h, lz77.h, squeeze.h, tree.h, util.h,
                     zlib_container.h, zopfli.h, symbols.h
  install-includes:  blocksplitter.h, cache.h, deflate.h, gzip_container.h,
                     hash.h, katajainen.h, lz77.h, squeeze.h, tree.h, util.h,
                     zlib_container.h, zopfli.h, symbols.h

test-suite test
  hs-source-dirs:   test
  default-language: Haskell2010
  main-is:          Spec.hs
  type:             exitcode-stdio-1.0
  ghc-options:      -Wall -fwarn-tabs -fwarn-unused-do-bind
  other-modules:    HopfliSpec
  build-depends:    base       >=4       && <5
                  , bytestring >=0.9     && <0.12
                  , hspec      >=1.7.2.1 && <2.5
                  , zlib       >=0.5.4   && <0.7
                  , QuickCheck >=2.6     && <2.11
                  , hopfli