name:                hopfli
version:             0.1.0.0
synopsis:            zlib compatible compression using Zopfil Compression Algorithm
homepage:            https://github.com/ananthakumaran/hopfli
license:             Apache-2.0
license-file:        LICENSE
author:              Anantha Kumaran
maintainer:          ananthakumaran@gmail.com
category:            Codec
build-type:          Simple
cabal-version:       >=1.10
description:         Hopfli provides a pure interface to compress data using Zopfli algorithm.

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

library
  exposed-modules: Codec.Compression.Hopfli
  other-modules: Codec.Compression.Hopfli.Raw
  build-depends:       base >=4 && <5,
                       bytestring >= 0.9 && < 0.12,
                       zlib >= 0.5.4

  hs-source-dirs:  src
  ghc-options: -Wall
  default-language:    Haskell2010
  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
  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

test-suite test
  hs-source-dirs: test
  main-is: Spec.hs
  type: exitcode-stdio-1.0
  ghc-options: -Wall
  build-depends:   base >=4 && <5,
                   bytestring >= 0.9 && < 0.12,
                   hspec == 1.7.2.1,
                   zlib >= 0.5.4,
                   QuickCheck == 2.6,
                   hopfli == 0.1.0.0

  default-language:    Haskell2010