-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathflat.cabal
323 lines (288 loc) · 7.29 KB
/
flat.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
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
cabal-version: >=1.10
name: flat
version: 0.6
homepage: http://quid2.org
synopsis: Principled and efficient bit-oriented binary serialization.
description:
Reference implementation of `flat`, a principled and efficient binary serialization format.
category: Data,Parsing,Serialization
license: BSD3
license-file: LICENSE
copyright: Copyright: (c) 2016-2022 Pasqualino `Titto` Assini
maintainer: [email protected]
author: Pasqualino `Titto` Assini
tested-with:
GHC ==7.10.3
|| ==8.0.2
|| ==8.2.2
|| ==8.4.4
|| ==8.6.5
|| ==8.8.4
|| ==8.10.7
|| ==9.0.2
|| ==9.2.4
|| ==9.4.3
build-type: Simple
extra-source-files:
stack.yaml
README.md
CHANGELOG
source-repository head
type: git
location: https://github.com/Quid2/flat
library
exposed-modules:
Data.ByteString.Convert
Data.FloatCast
Data.ZigZag
Flat
Flat.AsBin
Flat.AsSize
Flat.Bits
Flat.Class
Flat.Decoder
Flat.Decoder.Prim
Flat.Decoder.Run
Flat.Decoder.Strict
Flat.Decoder.Types
Flat.Encoder
Flat.Encoder.Prim
Flat.Encoder.Size
Flat.Encoder.Strict
Flat.Encoder.Types
Flat.Endian
Flat.Filler
Flat.Instances
Flat.Instances.Array
Flat.Instances.Base
Flat.Instances.ByteString
Flat.Instances.Containers
Flat.Instances.DList
Flat.Instances.Extra
Flat.Instances.Mono
Flat.Instances.Test
Flat.Instances.Text
Flat.Instances.Unordered
Flat.Instances.Util
Flat.Instances.Vector
Flat.Memory
Flat.Run
Flat.Tutorial
Flat.Types
hs-source-dirs: src
default-language: Haskell2010
other-extensions:
NoMonomorphismRestriction
DataKinds
DefaultSignatures
DeriveAnyClass
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
FlexibleContexts
FlexibleInstances
OverloadedStrings
PolyKinds
ScopedTypeVariables
TupleSections
TypeFamilies
TypeOperators
UndecidableInstances
ghc-options:
-Wall -O2 -funbox-strict-fields -fno-warn-orphans
-fno-warn-name-shadowing
-- -Werror
-- Stan options
-- -fwrite-ide-info -hiedir=.hie
if impl(eta -any)
build-depends:
array ==0.5.2.0
, base
, bytestring ==0.10.8.2
, containers ==0.5.9.1
, deepseq ==1.4.3.0
, dlist
, filepath ==1.4.1.1
, ghc-prim ==0.4.0.0
, hashable >=1.2.4.0 && <=1.2.7.0
, HUnit ==1.6.0.0
, memory >=0.14.10 && <=0.14.14
, mono-traversable ==1.0.1
, pretty >=1.1.3.4 && <=1.1.3.6
, primitive >=0.6.1.0 && <=0.6.4.0
, QuickCheck ==2.10
, tasty ==1.1.0.3
, text ==1.2.3.0
, unordered-containers >=0.2.7.1 && <=0.2.9.0
, vector >=0.11.0.0 && <=0.12.0.1
else
build-depends:
array >=0.5.1.0
, base >=4.8 && <5
, bytestring >=0.10.6
, containers
, deepseq >=1.4
, dlist >=0.6
, ghc-prim
, list-t >1
, mono-traversable
, pretty >=1.1.2
, primitive
, text
, unordered-containers
, vector
if impl(ghc <8)
build-depends:
hashable >=1.2.4.0 && <=1.2.7.0
, semigroups >=0 && <0.19
else
build-depends: hashable >=1.4.0.1
test-suite spec
type: exitcode-stdio-1.0
main-is: Spec.hs
cpp-options: -DLIST_BIT -DTEST_DECBITS
-- if impl(ghc <8.6)
cpp-options: -DENUM_LARGE
-- -DETA_VERSION -Dghcjs_HOST_OS
ghc-options: -O0
if impl(ghc >8)
ghc-options:
-Wno-unused-top-binds -Wno-type-defaults -Wno-missing-signatures
hs-source-dirs: test
other-modules:
Test.Data
Test.Data.Arbitrary
Test.Data.Flat
Test.Data.Values
Test.Data2
Test.Data2.Flat
Test.E
Test.E.Arbitrary
Test.E.Flat
default-language: Haskell2010
build-depends:
base
, flat
, ghc-prim
, quickcheck-text
, tasty-hunit
, tasty-quickcheck
, text
if impl(ghc <8)
build-depends: semigroups <0.19
if impl(eta -any)
build-depends:
array ==0.5.2.0
, bytestring ==0.10.8.2
, containers ==0.5.9.1
, deepseq ==1.4.3.0
, filepath ==1.4.1.1
, HUnit ==1.6.0.0
, mono-traversable ==1.0.1
, QuickCheck ==2.10
, tasty ==1.1.0.3
, text ==1.2.3.0
else
build-depends:
array
, bytestring
, containers
, deepseq
, filepath
, mono-traversable
, QuickCheck >=2.14.2
, tasty
, text
-- dynamic doctests and generation of static doctests
-- Usable only with recent versions of ghc (no ghcjs or eta)
-- test-suite doc
-- type: exitcode-stdio-1.0
-- main-is: DocSpec.hs
-- hs-source-dirs: test
-- default-language: Haskell2010
-- build-depends:
-- base
-- , directory
-- , doctest ==0.16.3.1
-- , filemanip >=0.3.6.3
-- , QuickCheck >=2.14.2
-- , text
-- static doctests (faster, useful for test coverage and to test ghcjs and eta)
test-suite doc-static
type: exitcode-stdio-1.0
main-is: DocTests.hs
hs-source-dirs: test
other-modules:
DocTest
DocTest.Data.FloatCast
DocTest.Data.ZigZag
DocTest.Flat.AsBin
DocTest.Flat.AsSize
DocTest.Flat.Bits
DocTest.Flat.Decoder.Prim
DocTest.Flat.Encoder.Prim
DocTest.Flat.Endian
DocTest.Flat.Instances.Array
DocTest.Flat.Instances.Base
DocTest.Flat.Instances.ByteString
DocTest.Flat.Instances.Containers
DocTest.Flat.Instances.DList
DocTest.Flat.Instances.Extra
DocTest.Flat.Instances.Mono
DocTest.Flat.Instances.Text
DocTest.Flat.Instances.Unordered
DocTest.Flat.Instances.Vector
DocTest.Flat.Tutorial
default-language: Haskell2010
build-depends:
array
, base
, bytestring
, containers
, dlist
, flat
, pretty
, QuickCheck >=2.14.2
, tasty
, tasty-hunit
, tasty-quickcheck
, text
, unordered-containers
, vector
if impl(ghc <8)
build-depends: semigroups <0.19
-- Test for Flat.AsBin Flat.AsSize and listTDecoder
test-suite big
type: exitcode-stdio-1.0
main-is: Big.hs
hs-source-dirs: test
default-language: Haskell2010
build-depends:
base
, bytestring
, flat
, list-t
, timeit
ghc-options: -rtsopts
-- test-suite text
-- type: exitcode-stdio-1.0
-- main-is: TextSize.hs
-- hs-source-dirs: test
-- default-language: Haskell2010
-- build-depends:
-- base
-- , flat
-- , text <2
-- ghc-options: -rtsopts
-- test-suite ghcjs
-- type: exitcode-stdio-1.0
-- main-is: GHCJS.hs
-- hs-source-dirs: test
-- default-language: Haskell2010
-- build-depends:
-- base
-- , flat
-- , bytestring
-- , jsaddle
-- ghc-options: -rtsopts