-
Notifications
You must be signed in to change notification settings - Fork 11
/
Z-Data.cabal
409 lines (378 loc) · 11.4 KB
/
Z-Data.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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
cabal-version: 2.4
name: Z-Data
version: 2.0.1.0
synopsis: Array, vector and text
description: This package provides array, slice and text operations
license: BSD-3-Clause
license-file: LICENSE
author: Z.Haskell Contributors
maintainer: [email protected]
copyright: (c) Z.Haskell Contributors
category: Data
build-type: Custom
homepage: https://github.com/ZHaskell/z-data
bug-reports: https://github.com/ZHaskell/z-data/issues
extra-source-files:
AUTHORS
cbits/bytes.c
cbits/compute_float_64.c
cbits/dtoa.c
cbits/text.c
cbits/text_width.c
ChangeLog.md
LICENSE
README.md
third_party/fastvalidate-utf-8/include/simdasciicheck.h
third_party/fastvalidate-utf-8/include/simdutf8check.h
third_party/fastvalidate-utf-8/include/simdasciicheck_avx512.h
third_party/fastvalidate-utf-8/include/simdutf8check_avx512.h
third_party/fastbase64/include/chromiumbase64.h
third_party/fastbase64/include/fastavxbase64.h
third_party/fastbase64/src/fastavxbase64.c
third_party/fastbase64/src/chromiumbase64.c
third_party/fastbase64/src/fastavxbase64.c
third_party/re2/re2/bitmap256.h
third_party/re2/re2/bitstate.cc
third_party/re2/re2/compile.cc
third_party/re2/re2/dfa.cc
third_party/re2/re2/filtered_re2.cc
third_party/re2/re2/filtered_re2.h
third_party/re2/re2/mimics_pcre.cc
third_party/re2/re2/nfa.cc
third_party/re2/re2/onepass.cc
third_party/re2/re2/parse.cc
third_party/re2/re2/perl_groups.cc
third_party/re2/re2/pod_array.h
third_party/re2/re2/prefilter.cc
third_party/re2/re2/prefilter.h
third_party/re2/re2/prefilter_tree.cc
third_party/re2/re2/prefilter_tree.h
third_party/re2/re2/prog.cc
third_party/re2/re2/prog.h
third_party/re2/re2/re2.cc
third_party/re2/re2/re2.h
third_party/re2/re2/regexp.cc
third_party/re2/re2/regexp.h
third_party/re2/re2/set.cc
third_party/re2/re2/set.h
third_party/re2/re2/simplify.cc
third_party/re2/re2/sparse_array.h
third_party/re2/re2/sparse_set.h
third_party/re2/re2/stringpiece.cc
third_party/re2/re2/stringpiece.h
third_party/re2/re2/tostring.cc
third_party/re2/re2/unicode_casefold.cc
third_party/re2/re2/unicode_casefold.h
third_party/re2/re2/unicode_groups.cc
third_party/re2/re2/unicode_groups.h
third_party/re2/re2/walker-inl.h
third_party/re2/util/flags.h
third_party/re2/util/logging.h
third_party/re2/util/malloc_counter.h
third_party/re2/util/mix.h
third_party/re2/util/mutex.h
third_party/re2/util/rune.cc
third_party/re2/util/strutil.cc
third_party/re2/util/strutil.h
third_party/re2/util/utf.h
third_party/re2/util/util.h
third_party/utf8rewind/include/utf8rewind/utf8rewind.h
third_party/utf8rewind/source/internal/base.h
third_party/utf8rewind/source/internal/casemapping.c
third_party/utf8rewind/source/internal/casemapping.h
third_party/utf8rewind/source/internal/codepoint.c
third_party/utf8rewind/source/internal/codepoint.h
third_party/utf8rewind/source/internal/composition.c
third_party/utf8rewind/source/internal/composition.h
third_party/utf8rewind/source/internal/database.c
third_party/utf8rewind/source/internal/database.h
third_party/utf8rewind/source/internal/decomposition.c
third_party/utf8rewind/source/internal/decomposition.h
third_party/utf8rewind/source/internal/seeking.c
third_party/utf8rewind/source/internal/seeking.h
third_party/utf8rewind/source/internal/streaming.c
third_party/utf8rewind/source/internal/streaming.h
third_party/utf8rewind/source/unicodedatabase.c
third_party/utf8rewind/source/unicodedatabase.h
third_party/utf8rewind/source/utf8rewind.c
custom-setup
setup-depends:
, base >=4.5 && <5
, Cabal >=2.4 && <4
source-repository head
type: git
location: git://github.com/haskell-Z/z-data.git
flag check-array-bound
description:
Add bound check to operations in Z.Data.Array module.
default: False
manual: True
flag use-avx2
description:
Use AVX2 instructions(utf8 validation, base64 codec, etc).
default: False
manual: True
flag use-avx512
description:
Use AVX512(AVX512F, AVX512VL, AVX512BW, AVX512VBMI) instructions(utf8 validation, base64 codec, etc).
default: False
manual: True
library
exposed-modules:
Z.Data.Array
Z.Data.Array.Base
Z.Data.Array.Cast
Z.Data.Array.QQ
Z.Data.Array.Unaligned
Z.Data.Array.UnliftedArray
Z.Data.ASCII
Z.Data.Builder
Z.Data.Builder.Base
Z.Data.Builder.Numeric
Z.Data.Builder.Numeric.DigitTable
Z.Data.Builder.Time
Z.Data.Builder.UUID
Z.Data.CBytes
Z.Data.Generics.Utils
Z.Data.JSON
Z.Data.JSON.Base
Z.Data.JSON.Builder
Z.Data.JSON.Converter
Z.Data.JSON.Value
Z.Data.Parser
Z.Data.Parser.Base
Z.Data.Parser.Numeric
Z.Data.Parser.Time
Z.Data.Parser.UUID
Z.Data.PrimRef
Z.Data.Text
Z.Data.Text.Base
Z.Data.Text.Extra
Z.Data.Text.Print
Z.Data.Text.Regex
Z.Data.Text.Search
Z.Data.Text.UTF8Codec
Z.Data.Text.UTF8Rewind
Z.Data.Vector
Z.Data.Vector.Base
Z.Data.Vector.Base64
Z.Data.Vector.Extra
Z.Data.Vector.FlatIntMap
Z.Data.Vector.FlatIntSet
Z.Data.Vector.FlatMap
Z.Data.Vector.FlatSet
Z.Data.Vector.Hex
Z.Data.Vector.QQ
Z.Data.Vector.Search
Z.Data.Vector.Sort
Z.Foreign
Z.Foreign.CPtr
build-depends:
, base >=4.16 && <5.0
, bytestring >=0.10.4 && <0.12
, case-insensitive ^>=1.2
, containers ^>=0.6
, deepseq ^>=1.4
, hashable >=1.3 && < 1.5
, primitive >=0.7.3 && <1.0
, QuickCheck >=2.10
, random >=1.2.0 && <1.3
, scientific >=0.3.7 && <0.4
, tagged ^>=0.8
, template-haskell >=2.14.0
, time >=1.9 && <2.0
, unordered-containers ^>=0.2
, unicode-collation >=0.1.3 && <0.2
, uuid-types >=1.0.4 && <2.0
include-dirs:
third_party/fastbase64/include
third_party/fastvalidate-utf-8/include
third_party/utf8rewind/include/utf8rewind
third_party/utf8rewind/source/internal
third_party/utf8rewind/source
third_party/re2
includes:
utf8rewind.h
chromiumbase64.h
if arch(x86_64)
includes:
simdasciicheck.h
simdutf8check.h
if flag(use-avx2)
includes:
fastavxbase64.h
if flag(use-avx512)
includes:
simdasciicheck_avx512.h
simdutf8check_avx512.h
fastavx512bwbase64.h
c-sources:
cbits/bytes.c
cbits/compute_float_64.c
cbits/dtoa.c
cbits/text.c
cbits/text_width.c
third_party/fastbase64/src/chromiumbase64.c
third_party/utf8rewind/source/internal/casemapping.c
third_party/utf8rewind/source/internal/codepoint.c
third_party/utf8rewind/source/internal/composition.c
third_party/utf8rewind/source/internal/database.c
third_party/utf8rewind/source/internal/decomposition.c
third_party/utf8rewind/source/internal/seeking.c
third_party/utf8rewind/source/internal/streaming.c
third_party/utf8rewind/source/unicodedatabase.c
third_party/utf8rewind/source/utf8rewind.c
if arch(x86_64)
if flag(use-avx2)
c-sources:
third_party/fastbase64/src/fastavxbase64.c
if flag(use-avx512)
c-sources:
third_party/fastbase64/src/fastavx512bwbase64.c
cxx-sources:
cbits/regex.cc
third_party/re2/re2/bitstate.cc
third_party/re2/re2/compile.cc
third_party/re2/re2/dfa.cc
third_party/re2/re2/filtered_re2.cc
third_party/re2/re2/mimics_pcre.cc
third_party/re2/re2/nfa.cc
third_party/re2/re2/onepass.cc
third_party/re2/re2/parse.cc
third_party/re2/re2/perl_groups.cc
third_party/re2/re2/prefilter.cc
third_party/re2/re2/prefilter_tree.cc
third_party/re2/re2/prog.cc
third_party/re2/re2/re2.cc
third_party/re2/re2/regexp.cc
third_party/re2/re2/set.cc
third_party/re2/re2/simplify.cc
third_party/re2/re2/stringpiece.cc
third_party/re2/re2/tostring.cc
third_party/re2/re2/unicode_casefold.cc
third_party/re2/re2/unicode_groups.cc
third_party/re2/util/rune.cc
third_party/re2/util/strutil.cc
default-language: Haskell2010
build-tool-depends: hsc2hs:hsc2hs -any
cc-options: -std=c11 -Wall -Wno-pointer-to-int-cast -Wno-unused-function
-- currently it's ignored, see https://github.com/haskell/cabal/pull/6226
-- we work around this issue using Setup.hs
cxx-options: -std=c++11
if os(osx)
cxx-options: -stdlib=libc++
if arch(x86_64)
if flag(use-avx512)
cc-options: -march=cannonlake
cxx-options: -march=cannonlake
else
if flag(use-avx2)
cc-options: -mavx2
cxx-options: -mavx2
else
cc-options: -msse4.2
cxx-options: -msse4.2
if os(windows)
extra-libraries: stdc++
cc-options: -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600
cxx-options: -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600
else
if os(osx)
extra-libraries:
c++
pthread
else
extra-libraries:
stdc++
pthread
if flag(check-array-bound)
cpp-options: -DCHECK_ARRAY_BOUND
ghc-options:
-Wall -Wno-unticked-promoted-constructors -Wno-incomplete-patterns
default-extensions:
BangPatterns
BinaryLiterals
CApiFFI
CPP
ConstraintKinds
DataKinds
DefaultSignatures
DeriveAnyClass
DeriveGeneric
DerivingStrategies
ExistentialQuantification
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
KindSignatures
MagicHash
MultiParamTypeClasses
MultiWayIf
OverloadedStrings
PartialTypeSignatures
PatternSynonyms
PolyKinds
QuantifiedConstraints
QuasiQuotes
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeFamilyDependencies
TypeOperators
UnboxedTuples
UnliftedFFITypes
ViewPatterns
test-suite Z-Data-Test
type: exitcode-stdio-1.0
hs-source-dirs: test/
main-is: Spec.hs
ghc-options: -threaded
default-language: Haskell2010
build-tool-depends: hsc2hs:hsc2hs -any, hspec-discover:hspec-discover -any
other-modules:
Z.Data.Array.UnalignedSpec
Z.Data.Builder.NumericSpec
Z.Data.Builder.TimeSpec
Z.Data.Builder.UUIDSpec
Z.Data.CBytesSpec
Z.Data.JSON.BaseSpec
Z.Data.JSON.ValueSpec
Z.Data.Parser.BaseSpec
Z.Data.Parser.NumericSpec
Z.Data.Parser.TimeSpec
Z.Data.Parser.UUIDSpec
Z.Data.Text.BaseSpec
Z.Data.Text.ExtraSpec
Z.Data.Text.PrintSpec
Z.Data.Text.SearchSpec
Z.Data.Vector.Base64Spec
Z.Data.Vector.BaseSpec
Z.Data.Vector.ExtraSpec
Z.Data.Vector.FlatMapSpec
Z.Data.Vector.FlatSetSpec
Z.Data.Vector.HexSpec
Z.Data.Vector.SearchSpec
Z.Data.Vector.SortSpec
Z.Foreign.CPtrSpec
Z.ForeignSpec
build-depends:
, base
, containers
, hashable
, hspec >=2.5.4
, HUnit
, primitive
, QuickCheck >=2.10
, quickcheck-instances
, scientific
, time
, unordered-containers
, Z-Data
c-sources: test/cbits/ffi.c
if flag(check-array-bound)
cpp-options: -DCHECK_ARRAY_BOUND