Forked from
Glasgow Haskell Compiler / Packages / binary
3 commits behind, 1 commit ahead of the upstream repository.
-
Ben Gamari authored
Release 0.8.9.2
Ben Gamari authoredRelease 0.8.9.2
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
binary.cabal 6.42 KiB
cabal-version: 3.0
-- To run tests and binaries you'll need to rename the name of the library
-- and all the local dependencies on it. If not, cabal is unable to come up
-- with a build plan.
--
-- Try this;
-- sed -i 's/\(name:\s*binary\)/\1-cabal-is-broken/' binary.cabal
-- sed -i 's/\(binary\),/\1-cabal-is-broken,/' binary.cabal
name: binary
version: 0.8.9.2
license: BSD-3-Clause
license-file: LICENSE
author: Lennart Kolmodin <kolmodin@gmail.com>
maintainer: Lennart Kolmodin, Don Stewart <dons00@gmail.com>
homepage: https://github.com/kolmodin/binary
description: Efficient, pure binary serialisation using lazy ByteStrings.
Haskell values may be encoded to and from binary formats,
written to disk as binary, or sent over the network.
The format used can be automatically generated, or
you can choose to implement a custom format if needed.
Serialisation speeds of over 1 G\/sec have been observed,
so this library should be suitable for high performance
scenarios.
synopsis: Binary serialisation for Haskell values using lazy ByteStrings
category: Data, Parsing
stability: provisional
build-type: Simple
tested-with: GHC == 8.0.2, GHC ==8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.6, GHC == 9.4.4, GHC == 9.6.3, GHC == 9.8.1
extra-source-files:
tools/derive/*.hs
-- from the benchmark 'bench'
extra-source-files:
benchmarks/CBenchmark.h
extra-doc-files:
README.md changelog.md docs/hcar/binary-Lb.tex
source-repository head
type: git
location: git://github.com/kolmodin/binary.git
library
build-depends: base >= 4.5.0.0 && < 5, bytestring >= 0.10.4, containers, array
hs-source-dirs: src
exposed-modules: Data.Binary,
Data.Binary.Put,
Data.Binary.Get,
Data.Binary.Get.Internal,
Data.Binary.Builder
other-modules: Data.Binary.Class,
Data.Binary.Internal,
Data.Binary.Generic,
Data.Binary.FloatCast
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
ghc-options: -O2 -Wall -fliberate-case-threshold=1000
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wnoncanonical-monad-instances
default-language: Haskell2010
test-suite qc
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: QC.hs
other-modules:
Action
Arbitrary
build-depends:
base >= 4.5.0.0 && < 5,
base-orphans >=0.8.1 && <0.9,
binary,
bytestring >= 0.10.4,
random>=1.0.1.0,
test-framework,
test-framework-quickcheck2 >= 0.3,
QuickCheck >= 2.9
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -Wall -O2 -threaded
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010
test-suite read-write-file
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: File.hs
build-depends:
base >= 4.5.0.0 && < 5,
binary,
bytestring >= 0.10.4,
Cabal,
directory,
filepath,
HUnit
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -Wall
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010
benchmark bench
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Benchmark.hs
other-modules:
MemBench
build-depends:
base >= 4.5.0.0 && < 5,
binary,
bytestring >= 0.10.4
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
c-sources: benchmarks/CBenchmark.c
include-dirs: benchmarks
ghc-options: -O2
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010
benchmark get
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Get.hs
build-depends:
attoparsec,
base >= 4.5.0.0 && < 5,
binary,
bytestring >= 0.10.4,
cereal,
criterion == 1.*,
deepseq,
mtl
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -O2 -Wall
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010
benchmark put
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Put.hs
build-depends:
base >= 4.5.0.0 && < 5,
binary,
bytestring >= 0.10.4,
criterion == 1.*,
deepseq
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -O2 -Wall
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010
benchmark generics-bench
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: GenericsBench.hs
build-depends:
base >= 4.5.0.0 && < 5,
binary,
bytestring >= 0.10.4,
-- The benchmark already depended on 'generic-deriving' transitively. That's
-- what caused one of the problems, as both 'generic-deriving' and
-- 'GenericsBenchTypes' used to define 'instance Generic Version'.
generic-deriving >= 0.10,
directory,
filepath,
unordered-containers,
zlib,
criterion
other-modules:
Cabal24
GenericsBenchCache
GenericsBenchTypes
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -O2 -Wall
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010
benchmark builder
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Builder.hs
build-depends:
base >= 4.5.0.0 && < 5,
binary,
bytestring >= 0.10.4,
criterion == 1.*,
deepseq,
mtl
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -O2
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010