-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
hw-json-simd.cabal
144 lines (131 loc) · 5.57 KB
/
hw-json-simd.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
cabal-version: 2.2
name: hw-json-simd
version: 0.1.1.2
synopsis: SIMD-based JSON semi-indexer
description: Please see the README on GitHub at <https://github.com/haskell-works/hw-json-simd#readme>
category: Data
homepage: https://github.com/haskell-works/hw-json-simd#readme
bug-reports: https://github.com/haskell-works/hw-json-simd/issues
author: John Ky
maintainer: [email protected]
copyright: 2018-2021 John Ky
license: BSD-3-Clause
license-file: LICENSE
build-type: Simple
tested-with: GHC == 9.4.2, GHC == 9.2.4, GHC == 9.0.2, GHC == 8.10.7, GHC == 8.8.4, GHC == 8.6.5
extra-source-files: cbits/debug.h
cbits/simd.h
cbits/intrinsics.h
cbits/simd.c
cbits/simd-spliced.c
cbits/simd-state.c
cbits/simd-phi-table-32.c
cbits/simd-transition-table-32.c
README.md
ChangeLog.md
source-repository head
type: git
location: https://github.com/haskell-works/hw-json-simd
flag avx2
description: Enable avx2 instruction set
manual: False
default: False
flag bmi2
description: Enable bmi2 instruction set
manual: False
default: False
flag sse42
description: Enable SSE 4.2 optimisations.
manual: False
default: True
common base { build-depends: base >= 4.11 && < 5 }
common bytestring { build-depends: bytestring >= 0.10.6 && < 0.13 }
common doctest { build-depends: doctest >= 0.16.2 && < 0.23 }
common doctest-discover { build-depends: doctest-discover >= 0.2 && < 0.3 }
common hw-prim { build-depends: hw-prim >= 0.6.2.35 && < 0.7 }
common lens { build-depends: lens >= 4 && < 6 }
common optparse-applicative { build-depends: optparse-applicative >= 0.14 && < 0.19 }
common transformers { build-depends: transformers >= 0.4 && < 0.7 }
common vector { build-depends: vector >= 0.12 && < 0.14 }
common hw-json-simd
build-depends: hw-json-simd
common config
ghc-options: -Wall
default-language: Haskell2010
if impl(ghc >= 8.0.1)
ghc-options: -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
if flag(sse42)
ghc-options: -msse4.2
cc-options: -msse4.2
if flag(bmi2)
cc-options: -mbmi2
if impl(ghc >= 8.4.1)
ghc-options: -mbmi2
if flag(avx2)
cc-options: -mavx2
if (arch(aarch64) || arch(arm))
build-depends: base < 0
library
import: base, config
, bytestring
, hw-prim
, lens
, vector
autogen-modules: Paths_hw_json_simd
other-modules: Paths_hw_json_simd
hs-source-dirs: src
cc-options: -mssse3 -mlzcnt -mbmi2 -mavx2
include-dirs: cbits
build-tool-depends: c2hs:c2hs
exposed-modules: HaskellWorks.Data.Json.Simd.Capabilities
HaskellWorks.Data.Json.Simd.Index.Simple
HaskellWorks.Data.Json.Simd.Index.Standard
HaskellWorks.Data.Json.Simd.Internal.Foreign
HaskellWorks.Data.Json.Simd.Internal.Index.Simple
HaskellWorks.Data.Json.Simd.Internal.Index.Standard
HaskellWorks.Data.Json.Simd.Internal.List
c-sources: cbits/debug.c
cbits/simd.c
cbits/simd-spliced.c
cbits/simd-state.c
cbits/simd-phi-table-32.c
cbits/simd-transition-table-32.c
executable hw-json-simd
import: base, config
, bytestring
, hw-prim
, lens
, optparse-applicative
, vector
main-is: Main.hs
hs-source-dirs: app
build-depends: hw-json-simd
ghc-options: -threaded -rtsopts -with-rtsopts=-N
other-modules: App.Commands
App.Commands.Capabilities
App.Commands.CreateIndex
App.Commands.Types
App.Lens
test-suite hw-json-simd-test
import: base, config
, bytestring
, hw-prim
, lens
, transformers
, vector
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends: hw-json-simd
test-suite doctest
import: base, config
, doctest
, doctest-discover
, hw-json-simd
default-language: Haskell2010
type: exitcode-stdio-1.0
ghc-options: -threaded -rtsopts -with-rtsopts=-N
main-is: DoctestDriver.hs
HS-Source-Dirs: doctest
build-tool-depends: doctest-discover:doctest-discover