packages feed

zlib-bindings-0.0.2: zlib-bindings.cabal

name:            zlib-bindings
version:         0.0.2
license:         BSD3
license-file:    LICENSE
author:          Michael Snoyman <michael@snoyman.com>
maintainer:      Michael Snoyman <michael@snoyman.com>
synopsis:        Low-level bindings to the zlib package.
category:        Codec
stability:       Experimental
cabal-version:   >= 1.8
build-type:      Simple
homepage:        http://github.com/snoyberg/zlib-bindings
extra-source-files: cbits/crc32.h cbits/inffast.h cbits/inflate.h
                    cbits/trees.h cbits/deflate.h cbits/inffixed.h
                    cbits/inftrees.h cbits/zutil.h, test/main.hs
flag test
  description: Build the test executable.
  default: False

library
    if flag(test)
        Buildable: False
    build-depends: base                  >= 4       && < 5
                 , bytestring            >= 0.9.1.4 && < 0.10
                 , zlib                  >= 0.5.2.0 && < 0.6
    exposed-modules: Codec.Zlib
                     Codec.Zlib.Lowlevel
    ghc-options:     -Wall
    c-sources:       c/helper.c
    if os(windows)
        include-dirs:  cbits
        install-includes: zlib.h zconf.h

test-suite test 
    main-is: main.hs
    hs-source-dirs: test
    type: exitcode-stdio-1.0
    build-depends: base                  >= 4       && < 5
                 , bytestring
                 , zlib
                 , zlib-bindings
                 , hspec
                 , QuickCheck            >= 2.3
                 , HUnit
    ghc-options:     -Wall

source-repository head
  type:     git
  location: git://github.com/snoyberg/zlib-bindings.git