-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathbinary.cabal
135 lines (121 loc) · 3.37 KB
/
binary.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: binary
version: 0.7.1.0
license: BSD3
license-file: LICENSE
author: Lennart Kolmodin <[email protected]>
maintainer: Lennart Kolmodin, Don Stewart <[email protected]>
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
cabal-version: >= 1.8
tested-with: GHC == 7.0.4, GHC == 7.4.1, GHC == 7.6.1
extra-source-files:
README.md index.html docs/hcar/binary-Lb.tex
tools/derive/*.hs tests/Makefile benchmarks/Makefile
-- from the benchmark 'bench'
extra-source-files:
benchmarks/CBenchmark.h
source-repository head
type: git
location: git://github.com/kolmodin/binary.git
flag development
default: False
library
build-depends: base >= 3.0 && < 5, bytestring >= 0.9, containers, array
hs-source-dirs: src
exposed-modules: Data.Binary,
Data.Binary.Put,
Data.Binary.Get,
Data.Binary.Get.Internal,
Data.Binary.Builder,
Data.Binary.Builder.Internal
other-modules: Data.Binary.Builder.Base,
Data.Binary.Class
if impl(ghc >= 7.2.1)
cpp-options: -DGENERICS
other-modules: Data.Binary.Generic
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
test-suite qc
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: QC.hs
other-modules:
Action
Arbitrary
build-depends:
array,
base >= 3.0 && < 5,
bytestring >= 0.9,
containers,
random>=1.0.1.0,
test-framework,
test-framework-quickcheck2 >= 0.3,
test-framework-hunit,
QuickCheck>=2.5,
HUnit
ghc-options: -Wall -O2
hs-source-dirs: src
test-suite read-write-file
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: File.hs
build-depends:
base >= 3.0 && < 5,
bytestring >= 0.9,
binary,
Cabal,
directory,
filepath,
HUnit
ghc-options: -Wall
benchmark bench
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Benchmark.hs
other-modules: MemBench
build-depends:
base >= 3.0 && < 5,
binary,
bytestring
c-sources: benchmarks/CBenchmark.c
include-dirs: benchmarks
ghc-options: -O2
benchmark get
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Get.hs
build-depends:
attoparsec,
base >= 3.0 && < 5,
binary,
bytestring,
cereal,
criterion,
deepseq,
mtl
ghc-options: -O2
benchmark builder
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Builder.hs
build-depends:
base >= 3.0 && < 5,
binary,
bytestring,
criterion,
deepseq,
mtl
ghc-options: -O2