| 1 | {{{ |

| 2 | |

| 3 | name: binary |

| 4 | version: 0.4.3.1 |

| 5 | license: BSD3 |

| 6 | license-file: LICENSE |

| 7 | author: Lennart Kolmodin <kolmodin@dtek.chalmers.se> |

| 8 | maintainer: Lennart Kolmodin, Don Stewart <dons@galois.com> |

| 9 | homepage: http://code.haskell.org/binary/ |

| 10 | description: Efficient, pure binary serialisation using lazy ByteStrings. |

| 11 | Haskell values may be encoded to and from binary formats, |

| 12 | written to disk as binary, or sent over the network. |

| 13 | Serialisation speeds of over 1 G\/sec have been observed, |

| 14 | so this library should be suitable for high performance |

| 15 | scenarios. |

| 16 | synopsis: Binary serialisation for Haskell values using lazy ByteStrings |

| 17 | category: Data, Parsing |

| 18 | stability: provisional |

| 19 | build-type: Simple |

| 20 | cabal-version: >= 1.2 |

| 21 | tested-with: GHC ==6.4.2, GHC ==6.6.1, GHC ==6.8.0 |

| 22 | extra-source-files: README index.html |

| 23 | |

| 24 | flag bytestring-in-base |

| 25 | flag split-base |

| 26 | flag applicative-in-base |

| 27 | |

| 28 | library |

| 29 | if flag(bytestring-in-base) |

| 30 | -- bytestring was in base-2.0 and 2.1.1 |

| 31 | build-depends: base >= 2.0 && < 2.2 |

| 32 | cpp-options: -DBYTESTRING_IN_BASE |

| 33 | else |

| 34 | -- in base 1.0 and 3.0 bytestring is a separate package |

| 35 | build-depends: base < 2.0 || >= 3, bytestring >= 0.9 |

| 36 | |

| 37 | if flag(split-base) |

| 38 | build-depends: base >= 3.0, containers, array |

| 39 | else |

| 40 | build-depends: base < 3.0 |

| 41 | |

| 42 | if flag(applicative-in-base) |

| 43 | build-depends: base >= 2.0 |

| 44 | cpp-options: -DAPPLICATIVE_IN_BASE |

| 45 | else |

| 46 | build-depends: base < 2.0 |

| 47 | hs-source-dirs: src |

| 48 | |

| 49 | exposed-modules: Data.Binary, |

| 50 | Data.Binary.Put, |

| 51 | Data.Binary.Get, |

| 52 | Data.Binary.Builder |

| 53 | extensions: CPP, |

| 54 | FlexibleContexts |

| 55 | |

| 56 | ghc-options: -O2 |

| 57 | -Wall |

| 58 | -fspec-constr |

| 59 | -fliberate-case-threshold=1000 |

| 60 | -fdicts-cheap |

| 61 | -fno-method-sharing |

| 62 | |

| 63 | -- if impl(ghc < 6.5) |

| 64 | -- ghc-options: -fallow-undecidable-instances |

| 65 | |

| 66 | }}} |