|
Packit |
4cd534 |
name: zlib
|
|
Packit |
4cd534 |
version: 0.6.1.2
|
|
Packit |
4cd534 |
copyright: (c) 2006-2016 Duncan Coutts
|
|
Packit |
4cd534 |
license: BSD3
|
|
Packit |
4cd534 |
license-file: LICENSE
|
|
Packit |
4cd534 |
author: Duncan Coutts <duncan@community.haskell.org>
|
|
Packit |
4cd534 |
maintainer: Duncan Coutts <duncan@community.haskell.org>
|
|
Packit |
4cd534 |
bug-reports: https://github.com/haskell/zlib/issues
|
|
Packit |
4cd534 |
category: Codec
|
|
Packit |
4cd534 |
synopsis: Compression and decompression in the gzip and zlib formats
|
|
Packit |
4cd534 |
description: This package provides a pure interface for compressing and
|
|
Packit |
4cd534 |
decompressing streams of data represented as lazy
|
|
Packit |
4cd534 |
'ByteString's. It uses the
|
|
Packit |
4cd534 |
<https://en.wikipedia.org/wiki/Zlib zlib C library>
|
|
Packit |
4cd534 |
so it has high performance. It supports the \"zlib\",
|
|
Packit |
4cd534 |
\"gzip\" and \"raw\" compression formats.
|
|
Packit |
4cd534 |
.
|
|
Packit |
4cd534 |
It provides a convenient high level API suitable for most
|
|
Packit |
4cd534 |
tasks and for the few cases where more control is needed it
|
|
Packit |
4cd534 |
provides access to the full zlib feature set.
|
|
Packit |
4cd534 |
build-type: Simple
|
|
Packit |
4cd534 |
cabal-version: >= 1.10
|
|
Packit |
4cd534 |
tested-with: GHC ==7.0.4, GHC ==7.2.2, GHC ==7.4.2, GHC ==7.6.3, GHC ==7.8.4, GHC ==7.10.3, GHC ==8.0.1, GHC==8.0.2, GHC ==8.1.*
|
|
Packit |
4cd534 |
|
|
Packit |
4cd534 |
extra-source-files: changelog
|
|
Packit |
4cd534 |
-- zlib C sources (for Windows)
|
|
Packit |
4cd534 |
cbits/crc32.h cbits/inffast.h cbits/inflate.h
|
|
Packit |
4cd534 |
cbits/trees.h cbits/deflate.h cbits/inffixed.h
|
|
Packit |
4cd534 |
cbits/inftrees.h cbits/zutil.h cbits/gzguts.h
|
|
Packit |
4cd534 |
-- test data files
|
|
Packit |
4cd534 |
test/data/bad-crc.gz test/data/custom-dict.zlib
|
|
Packit |
4cd534 |
test/data/custom-dict.zlib-dict test/data/hello.gz
|
|
Packit |
4cd534 |
test/data/not-gzip test/data/two-files.gz
|
|
Packit |
4cd534 |
-- demo programs:
|
|
Packit |
4cd534 |
examples/gzip.hs examples/gunzip.hs
|
|
Packit |
4cd534 |
|
|
Packit |
4cd534 |
source-repository head
|
|
Packit |
4cd534 |
type: git
|
|
Packit |
4cd534 |
location: https://github.com/haskell/zlib.git
|
|
Packit |
4cd534 |
|
|
Packit |
4cd534 |
flag non-blocking-ffi
|
|
Packit |
4cd534 |
default: False
|
|
Packit |
4cd534 |
manual: True
|
|
Packit |
4cd534 |
description: The (de)compression calls can sometimes take a long time, which
|
|
Packit |
4cd534 |
prevents other Haskell threads running. Enabling this flag
|
|
Packit |
4cd534 |
avoids this unfairness, but with greater overall cost.
|
|
Packit |
4cd534 |
|
|
Packit |
4cd534 |
library
|
|
Packit |
4cd534 |
exposed-modules: Codec.Compression.GZip,
|
|
Packit |
4cd534 |
Codec.Compression.Zlib,
|
|
Packit |
4cd534 |
Codec.Compression.Zlib.Raw,
|
|
Packit |
4cd534 |
Codec.Compression.Zlib.Internal
|
|
Packit |
4cd534 |
other-modules: Codec.Compression.Zlib.Stream
|
|
Packit |
4cd534 |
if impl(ghc < 7)
|
|
Packit |
4cd534 |
default-language: Haskell98
|
|
Packit |
4cd534 |
default-extensions: PatternGuards
|
|
Packit |
4cd534 |
else
|
|
Packit |
4cd534 |
default-language: Haskell2010
|
|
Packit |
4cd534 |
other-extensions: CPP, ForeignFunctionInterface, RankNTypes, BangPatterns,
|
|
Packit |
4cd534 |
DeriveDataTypeable
|
|
Packit |
4cd534 |
if impl(ghc >= 7.2)
|
|
Packit |
4cd534 |
other-extensions: DeriveGeneric
|
|
Packit |
4cd534 |
build-depends: base >= 4 && < 5,
|
|
Packit |
4cd534 |
bytestring >= 0.9 && < 0.12
|
|
Packit |
4cd534 |
if impl(ghc >= 7.2 && < 7.6)
|
|
Packit |
4cd534 |
build-depends: ghc-prim
|
|
Packit |
4cd534 |
includes: zlib.h
|
|
Packit |
4cd534 |
ghc-options: -Wall -fwarn-tabs
|
|
Packit |
4cd534 |
if flag(non-blocking-ffi)
|
|
Packit |
4cd534 |
cpp-options: -DNON_BLOCKING_FFI
|
|
Packit |
4cd534 |
if !os(windows)
|
|
Packit |
4cd534 |
-- Normally we use the the standard system zlib:
|
|
Packit |
4cd534 |
extra-libraries: z
|
|
Packit |
4cd534 |
else
|
|
Packit |
4cd534 |
-- However for the benefit of users of Windows (which does not have zlib
|
|
Packit |
4cd534 |
-- by default) we bundle a complete copy of the C sources of zlib-1.2.8
|
|
Packit |
4cd534 |
c-sources: cbits/adler32.c cbits/compress.c cbits/crc32.c
|
|
Packit |
4cd534 |
cbits/deflate.c cbits/infback.c
|
|
Packit |
4cd534 |
cbits/inffast.c cbits/inflate.c cbits/inftrees.c
|
|
Packit |
4cd534 |
cbits/trees.c cbits/uncompr.c cbits/zutil.c
|
|
Packit |
4cd534 |
include-dirs: cbits
|
|
Packit |
4cd534 |
install-includes: zlib.h zconf.h
|
|
Packit |
4cd534 |
|
|
Packit |
4cd534 |
test-suite tests
|
|
Packit |
4cd534 |
type: exitcode-stdio-1.0
|
|
Packit |
4cd534 |
main-is: Test.hs
|
|
Packit |
4cd534 |
other-modules: Utils,
|
|
Packit |
4cd534 |
Test.Codec.Compression.Zlib.Internal,
|
|
Packit |
4cd534 |
Test.Codec.Compression.Zlib.Stream
|
|
Packit |
4cd534 |
hs-source-dirs: test
|
|
Packit |
4cd534 |
default-language: Haskell2010
|
|
Packit |
4cd534 |
build-depends: base, bytestring, zlib,
|
|
Packit |
4cd534 |
QuickCheck == 2.*,
|
|
Packit |
4cd534 |
tasty >= 0.8 && < 0.12,
|
|
Packit |
4cd534 |
tasty-quickcheck == 0.8.*,
|
|
Packit |
4cd534 |
tasty-hunit >= 0.8 && < 0.10
|
|
Packit |
4cd534 |
ghc-options: -Wall
|