summaryrefslogtreecommitdiff
path: root/store.cabal
blob: 7961c962119a38cb9828b4a1b94ad5a2495d67f5 (plain)
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.31.1.
--
-- see: https://github.com/sol/hpack
--
-- hash: b63dca2860ccf2f472bd33ec03365cee58303ec3d90dd34d9d62ecf1a7c3edcc

name:           store
version:        0.7.4
synopsis:       Fast binary serialization
category:       Serialization, Data
homepage:       https://github.com/fpco/store#readme
bug-reports:    https://github.com/fpco/store/issues
maintainer:     Michael Sloan <mgsloan@gmail.com>
copyright:      2016 FP Complete
license:        MIT
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    ChangeLog.md
    README.md

source-repository head
  type: git
  location: https://github.com/fpco/store

flag comparison-bench
  manual: True
  default: False

flag integer-simple
  description: Use the [simple integer library](http://hackage.haskell.org/package/integer-simple) instead of [integer-gmp](http://hackage.haskell.org/package/integer-gmp)
  manual: False
  default: False

flag small-bench
  manual: True
  default: False

library
  exposed-modules:
      Data.Store
      Data.Store.Internal
      Data.Store.TH
      Data.Store.TH.Internal
      Data.Store.TypeHash
      Data.Store.TypeHash.Internal
      Data.Store.Version
      System.IO.ByteBuffer
  other-modules:
      Data.Store.Impl
  hs-source-dirs:
      src
  ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -O2
  build-depends:
      array >=0.5.0.0
    , async >=2.0.2
    , base >=4.7 && <5
    , base-orphans >=0.4.3
    , base64-bytestring >=0.1.1
    , bifunctors >=4.0
    , bytestring >=0.10.4.0
    , containers >=0.5.5.1
    , contravariant >=1.3
    , cryptohash >=0.11.6
    , deepseq >=1.3.0.2
    , directory >=1.2
    , fail >=4.9
    , filepath >=1.3
    , free >=4.11
    , ghc-prim >=0.3.1.0
    , hashable >=1.2.3.1
    , hspec >=2.1.2
    , hspec-smallcheck >=0.3.0
    , lifted-base >=0.2.3.3
    , monad-control >=0.3.3.0
    , mono-traversable >=0.7.0
    , network >=2.6.0.2
    , primitive >=0.6
    , resourcet >=1.1.3.3
    , safe >=0.3.8
    , semigroups >=0.8
    , smallcheck >=1.1.1
    , store-core >=0.4 && <0.5
    , syb >=0.4.4
    , template-haskell >=2.9.0.0
    , text >=1.2.0.4
    , th-lift >=0.7.1
    , th-lift-instances >=0.1.4
    , th-orphans >=0.13.2
    , th-reify-many >=0.1.6
    , th-utilities >=0.2
    , time >=1.4.2
    , transformers >=0.3.0.0
    , unordered-containers >=0.2.5.1
    , vector >=0.10.12.3
    , void >=0.5.11
  if flag(integer-simple)
    build-depends:
        integer-simple >=0.1.1.1
  else
    cpp-options: -DINTEGER_GMP
    build-depends:
        integer-gmp >=0.5.1.0
  default-language: Haskell2010

test-suite store-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Data.Store.UntrustedSpec
      Data.StoreSpec
      Data.StoreSpec.TH
      System.IO.ByteBufferSpec
  hs-source-dirs:
      test
  ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -O2 -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      array >=0.5.0.0
    , async >=2.0.2
    , base >=4.7 && <5
    , base-orphans >=0.4.3
    , base64-bytestring >=0.1.1
    , bifunctors >=4.0
    , bytestring >=0.10.4.0
    , clock >=0.3
    , containers >=0.5.5.1
    , contravariant >=1.3
    , cryptohash >=0.11.6
    , deepseq >=1.3.0.2
    , directory >=1.2
    , fail >=4.9
    , filepath >=1.3
    , free >=4.11
    , ghc-prim >=0.3.1.0
    , hashable >=1.2.3.1
    , hspec >=2.1.2
    , hspec-smallcheck >=0.3.0
    , lifted-base >=0.2.3.3
    , monad-control >=0.3.3.0
    , mono-traversable >=0.7.0
    , network >=2.6.0.2
    , primitive >=0.6
    , resourcet >=1.1.3.3
    , safe >=0.3.8
    , semigroups >=0.8
    , smallcheck >=1.1.1
    , store
    , store-core >=0.4 && <0.5
    , syb >=0.4.4
    , template-haskell >=2.9.0.0
    , text >=1.2.0.4
    , th-lift >=0.7.1
    , th-lift-instances >=0.1.4
    , th-orphans >=0.13.2
    , th-reify-many >=0.1.6
    , th-utilities >=0.2
    , time >=1.4.2
    , transformers >=0.3.0.0
    , unordered-containers >=0.2.5.1
    , vector >=0.10.12.3
    , void >=0.5.11
  if flag(integer-simple)
    build-depends:
        integer-simple >=0.1.1.1
  else
    cpp-options: -DINTEGER_GMP
    build-depends:
        integer-gmp >=0.5.1.0
  default-language: Haskell2010

benchmark store-bench
  type: exitcode-stdio-1.0
  main-is: Bench.hs
  other-modules:
      Paths_store
  hs-source-dirs:
      bench
  ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -O2 -threaded -rtsopts -with-rtsopts=-N1 -with-rtsopts=-s -with-rtsopts=-qg
  build-depends:
      array >=0.5.0.0
    , async >=2.0.2
    , base >=4.7 && <5
    , base-orphans >=0.4.3
    , base64-bytestring >=0.1.1
    , bifunctors >=4.0
    , bytestring >=0.10.4.0
    , containers >=0.5.5.1
    , contravariant >=1.3
    , criterion
    , cryptohash >=0.11.6
    , deepseq >=1.3.0.2
    , directory >=1.2
    , fail >=4.9
    , filepath >=1.3
    , free >=4.11
    , ghc-prim >=0.3.1.0
    , hashable >=1.2.3.1
    , hspec >=2.1.2
    , hspec-smallcheck >=0.3.0
    , lifted-base >=0.2.3.3
    , monad-control >=0.3.3.0
    , mono-traversable >=0.7.0
    , network >=2.6.0.2
    , primitive >=0.6
    , resourcet >=1.1.3.3
    , safe >=0.3.8
    , semigroups >=0.8
    , smallcheck >=1.1.1
    , store
    , store-core >=0.4 && <0.5
    , syb >=0.4.4
    , template-haskell >=2.9.0.0
    , text >=1.2.0.4
    , th-lift >=0.7.1
    , th-lift-instances >=0.1.4
    , th-orphans >=0.13.2
    , th-reify-many >=0.1.6
    , th-utilities >=0.2
    , time >=1.4.2
    , transformers >=0.3.0.0
    , unordered-containers >=0.2.5.1
    , vector >=0.10.12.3
    , void >=0.5.11
  if flag(integer-simple)
    build-depends:
        integer-simple >=0.1.1.1
  else
    cpp-options: -DINTEGER_GMP
    build-depends:
        integer-gmp >=0.5.1.0
  if flag(comparison-bench)
    cpp-options: -DCOMPARISON_BENCH
    build-depends:
        binary
      , cereal
      , cereal-vector
      , vector-binary-instances
  if flag(small-bench)
    cpp-options: -DSMALL_BENCH
  default-language: Haskell2010

benchmark store-weigh
  type: exitcode-stdio-1.0
  main-is: Allocations.hs
  hs-source-dirs:
      test
  ghc-options: -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates -O2 -threaded -rtsopts -with-rtsopts=-N -with-rtsopts=-T -O2
  build-depends:
      array >=0.5.0.0
    , async >=2.0.2
    , base >=4.7 && <5
    , base-orphans >=0.4.3
    , base64-bytestring >=0.1.1
    , bifunctors >=4.0
    , bytestring >=0.10.4.0
    , cereal
    , cereal-vector
    , containers >=0.5.5.1
    , contravariant >=1.3
    , criterion
    , cryptohash >=0.11.6
    , deepseq >=1.3.0.2
    , directory >=1.2
    , fail >=4.9
    , filepath >=1.3
    , free >=4.11
    , ghc-prim >=0.3.1.0
    , hashable >=1.2.3.1
    , hspec >=2.1.2
    , hspec-smallcheck >=0.3.0
    , lifted-base >=0.2.3.3
    , monad-control >=0.3.3.0
    , mono-traversable >=0.7.0
    , network >=2.6.0.2
    , primitive >=0.6
    , resourcet >=1.1.3.3
    , safe >=0.3.8
    , semigroups >=0.8
    , smallcheck >=1.1.1
    , store
    , store-core >=0.4 && <0.5
    , syb >=0.4.4
    , template-haskell >=2.9.0.0
    , text >=1.2.0.4
    , th-lift >=0.7.1
    , th-lift-instances >=0.1.4
    , th-orphans >=0.13.2
    , th-reify-many >=0.1.6
    , th-utilities >=0.2
    , time >=1.4.2
    , transformers >=0.3.0.0
    , unordered-containers >=0.2.5.1
    , vector >=0.10.12.3
    , vector-binary-instances
    , void >=0.5.11
    , weigh
  if flag(integer-simple)
    build-depends:
        integer-simple >=0.1.1.1
  else
    cpp-options: -DINTEGER_GMP
    build-depends:
        integer-gmp >=0.5.1.0
  default-language: Haskell2010