-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathunicode-transforms.cabal
222 lines (207 loc) · 5.63 KB
/
unicode-transforms.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
cabal-version: 2.2
name: unicode-transforms
version: 0.4.0.1
synopsis: Unicode normalization
description: Fast Unicode 14.0.0 normalization in Haskell (NFC, NFKC, NFD, NFKD).
category: Data,Text,Unicode
stability: Experimental
homepage: http://github.com/composewell/unicode-transforms
bug-reports: https://github.com/composewell/unicode-transforms/issues
author: Harendra Kumar
maintainer: [email protected]
copyright: 2016-2017 Harendra Kumar,
2014–2015 Antonio Nikishaev
license: BSD-3-Clause
license-file: LICENSE
tested-with: GHC==8.0.2
, GHC==8.2.2
, GHC==8.4.4
, GHC==8.6.5
, GHC==8.8.4
, GHC==8.10.7
, GHC==9.0.2
, GHC==9.2.8
, GHC==9.4.7
, GHC==9.6.3
, GHC==9.8.1
, GHC==9.10.1
build-type: Simple
extra-doc-files:
Changelog.md
MAINTAINING.md
NOTES.md
README.md
benchmark/README.md
extra-source-files:
download-ucd-files.sh
benchmark/NormalizeFile.hs
benchmark/data/AllChars.txt
benchmark/data/Deutsch.txt
benchmark/data/Devanagari.txt
benchmark/data/English.txt
benchmark/data/Japanese.txt
benchmark/data/Korean.txt
benchmark/data/Vietnamese.txt
test/data/NormalizationTest.txt
test/data/extra/NormalizationTest.txt
source-repository head
type: git
location: https://github.com/composewell/unicode-transforms
flag dev
description: Developer build
manual: True
default: False
flag bench-show
description: Use bench-show to compare benchmarks
manual: True
default: False
flag has-icu
description: Use text-icu for benchmark and test comparisons
manual: True
default: False
flag has-llvm
description: Use llvm backend (faster) for compilation
manual: True
default: False
flag use-gauge
description: Use gauge instead of tasty-bench for benchmarking
manual: True
default: False
library
exposed-modules:
Data.Unicode.Types
Data.Text.Normalize
-- Deprecated
Data.ByteString.UTF8.Normalize
other-modules:
Data.Unicode.Internal.NormalizeStream
hs-source-dirs: .
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
base >= 4.8 && < 4.21
, unicode-data >= 0.2 && < 0.7
, bytestring >= 0.9 && < 0.13
, ghc-prim >= 0.2 && < 0.12
-- We depend on a lot of internal modules in text. We keep the upper bound
-- inclusive of the latest stable version.
, text >=1.1.1 && <=1.2.5.0 || >=2.0 && <2.2
if flag(dev)
ghc-options: -O0
else
ghc-options: -O2 -funbox-strict-fields -fspec-constr-count=10
if flag(has-llvm)
ghc-options: -fllvm
default-language: Haskell2010
test-suite extras
type: exitcode-stdio-1.0
main-is: Extra.hs
other-modules:
QuickCheckUtils
hs-source-dirs:
test
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
QuickCheck >=2.1 && <2.15
, base
, deepseq >=1.1 && <1.6
, text
, unicode-transforms
if flag(dev)
ghc-options: -O0
else
ghc-options: -O2 -funbox-strict-fields
if flag(has-llvm)
ghc-options: -fllvm
default-language: Haskell2010
test-suite quickcheck
type: exitcode-stdio-1.0
main-is: Properties.hs
other-modules:
QuickCheckUtils
hs-source-dirs:
test
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
QuickCheck
, unicode-data
, base
, deepseq
, hspec >= 2.0 && < 3
, text
, unicode-transforms
if flag(dev)
ghc-options: -O0
else
ghc-options: -O2 -funbox-strict-fields
if flag(has-llvm)
ghc-options: -fllvm
if flag(has-icu)
cpp-options: -DHAS_ICU
build-depends:
text-icu >=0.6.2.1 && <0.9
default-language: Haskell2010
test-suite ucd
type: exitcode-stdio-1.0
main-is: NormalizationTest.hs
hs-source-dirs:
test
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
base
, bytestring
, split >=0.2 && <0.3
, text
, unicode-transforms
if flag(dev)
ghc-options: -O0
else
ghc-options: -O2 -funbox-strict-fields
if flag(has-llvm)
ghc-options: -fllvm
default-language: Haskell2010
benchmark bench
type: exitcode-stdio-1.0
main-is: Benchmark.hs
hs-source-dirs:
benchmark
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
base
, deepseq
, filepath >=1.0 && <2
, path >=0.0.0 && <0.10
, path-io >=0.1.0 && <1.9
, text
, unicode-transforms
if flag(use-gauge)
build-depends: gauge >=0.2.0 && <0.3
else
build-depends: tasty-bench>= 0.2.5 && <0.4
mixins: tasty-bench (Test.Tasty.Bench as Gauge.Main)
if flag(dev)
ghc-options: -O0
else
ghc-options: -O2 -funbox-strict-fields
if flag(has-llvm)
ghc-options: -fllvm
if flag(has-icu)
cpp-options: -DBENCH_ICU
build-depends:
text-icu
if impl(ghc < 7.10)
build-depends:
path (<0.5.12 || >0.5.12)
default-language: Haskell2010
executable chart
default-language: Haskell2010
hs-source-dirs: benchmark
main-is: Chart.hs
if flag(bench-show)
buildable: True
build-Depends:
base
, bench-show >= 0.3 && < 0.4
, split
, transformers >= 0.4 && < 0.7
else
buildable: False