Bump version to 0.4.1
[packages/binary.git] / binary.cabal
1 name:            binary
2 version:         0.4.1
3 license:         BSD3
4 license-file:    LICENSE
5 author:          Lennart Kolmodin <kolmodin@dtek.chalmers.se>
6 maintainer:      Lennart Kolmodin, Don Stewart <dons@galois.com>
7 homepage:        http://www.cse.unsw.edu.au/~dons/binary.html
8 description:     Efficient, pure binary serialisation using lazy ByteStrings.
9                  Haskell values may be encoded to and form binary formats, 
10                  written to disk as binary, or sent over the network.
11                  Serialisation speeds of over 1 G\/sec have been observed,
12                  so this library should be suitable for high performance
13                  scenarios.
14 synopsis:        Binary serialization for Haskell values using lazy ByteStrings
15 category:        Data, Parsing
16 stability:       provisional
17 build-type:      Simple
18 cabal-version:   >= 1.2
19 tested-with:     GHC ==6.4.2, GHC ==6.6.1, GHC ==6.8.0
20 extra-source-files: README 
21
22 flag bytestring-in-base
23 flag split-base
24
25 library
26   if flag(bytestring-in-base)
27     -- bytestring was in base-2.0 and 2.1.1
28     build-depends: base >= 2.0 && < 2.2
29     ghc-options: -DBYTESTRING_IN_BASE
30   else
31     -- in base 1.0 and 3.0 bytestring is a separate package
32     build-depends: base < 2.0 || >= 3, bytestring >= 0.9
33
34   if flag(split-base)
35     build-depends:   base >= 3.0, containers, array
36   else
37     build-depends:   base < 3.0
38
39   exposed-modules: Data.Binary,
40                    Data.Binary.Put,
41                    Data.Binary.Get,
42                    Data.Binary.Builder
43   extensions:      CPP, FlexibleContexts
44   hs-source-dirs:  src
45   ghc-options:     -O2 -Wall -fliberate-case-threshold=1000
46   if impl(ghc < 6.5)
47     ghc-options:   -fallow-undecidable-instances