on text-jsstring-8.4-fix-tests-build help sign in
text/text.cabal
287 lines 8.7 kB history raw
1name: text
2version: 1.2.3.0
3homepage: https://github.com/haskell/text
4bug-reports: https://github.com/haskell/text/issues
5synopsis: An efficient packed Unicode text type.
6description:
7 .
8 An efficient packed, immutable Unicode text type (both strict and
9 lazy), with a powerful loop fusion optimization framework.
10 .
11 The 'Text' type represents Unicode character strings, in a time and
12 space-efficient manner. This package provides text processing
13 capabilities that are optimized for performance critical use, both
14 in terms of large data quantities and high speed.
15 .
16 The 'Text' type provides character-encoding, type-safe case
17 conversion via whole-string case conversion functions (see "Data.Text").
18 It also provides a range of functions for converting 'Text' values to
19 and from 'ByteStrings', using several standard encodings
20 (see "Data.Text.Encoding").
21 .
22 Efficient locale-sensitive support for text IO is also supported
23 (see "Data.Text.IO").
24 .
25 These modules are intended to be imported qualified, to avoid name
26 clashes with Prelude functions, e.g.
27 .
28 > import qualified Data.Text as T
29 .
30 To use an extended and very rich family of functions for working
31 with Unicode text (including normalization, regular expressions,
32 non-standard encodings, text breaking, and locales), see
33 the [text-icu package](https://hackage.haskell.org/package/text-icu)
34 based on the well-respected and liberally
35 licensed [ICU library](http://site.icu-project.org/).
37license: BSD2
38license-file: LICENSE
39author: Bryan O'Sullivan <bos@serpentine.com>
40maintainer: Bryan O'Sullivan <bos@serpentine.com>
41copyright: 2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper
42category: Data, Text
43build-type: Simple
44cabal-version: >= 1.8
45tested-with: GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4,
46 GHC==7.6.3, GHC==7.4.2, GHC==7.2.2, GHC==7.0.4
47extra-source-files:
48 -- scripts/CaseFolding.txt
49 -- scripts/SpecialCasing.txt
50 README.markdown
51 benchmarks/Setup.hs
52 benchmarks/cbits/*.c
53 benchmarks/haskell/*.hs
54 benchmarks/haskell/Benchmarks/*.hs
55 benchmarks/haskell/Benchmarks/Programs/*.hs
56 benchmarks/python/*.py
57 benchmarks/ruby/*.rb
58 benchmarks/text-benchmarks.cabal
59 changelog.md
60 include/*.h
61 scripts/*.hs
62 tests-and-benchmarks.markdown
63 tests/*.hs
64 tests/.ghci
65 tests/Makefile
66 tests/Tests/*.hs
67 tests/Tests/Properties/*.hs
68 tests/cabal.config
69 tests/scripts/*.sh
70 tests/text-tests.cabal
72flag bytestring-builder
73 description:
74 Depend on the [bytestring-builder](https://hackage.haskell.org/package/bytestring-builder)
75 package for backwards compatibility.
76 default: False
77 manual: False
79flag developer
80 description: operate in developer mode
81 default: False
82 manual: True
84flag integer-simple
85 description:
86 Use the [simple integer library](http://hackage.haskell.org/package/integer-simple)
87 instead of [integer-gmp](http://hackage.haskell.org/package/integer-gmp)
88 default: False
89 manual: False
91library
92 c-sources: cbits/cbits.c
93 include-dirs: include
95 exposed-modules:
96 Data.Text
97 Data.Text.Array
98 Data.Text.Encoding
99 Data.Text.Encoding.Error
100 -- Data.Text.Foreign
101 Data.Text.IO
102 Data.Text.Internal
103 Data.Text.Internal.Builder
104 -- Data.Text.Internal.Builder.Functions
105 -- Data.Text.Internal.Builder.Int.Digits
106 -- Data.Text.Internal.Builder.RealFloat.Functions
107 Data.Text.Internal.Encoding.Fusion
108 Data.Text.Internal.Encoding.Fusion.Common
109 Data.Text.Internal.Encoding.Utf16
110 Data.Text.Internal.Encoding.Utf32
111 Data.Text.Internal.Encoding.Utf8
112 Data.Text.Internal.Functions
113 Data.Text.Internal.Fusion
114 Data.Text.Internal.Fusion.CaseMapping
115 Data.Text.Internal.Fusion.Common
116 Data.Text.Internal.Fusion.Size
117 Data.Text.Internal.Fusion.Types
118 -- Data.Text.Internal.IO
119 Data.Text.Internal.Lazy
120 -- Data.Text.Internal.Lazy.Encoding.Fusion
121 Data.Text.Internal.Lazy.Fusion
122 Data.Text.Internal.Lazy.Search
123 Data.Text.Internal.Private
124 Data.Text.Internal.Read
125 -- Data.Text.Internal.Search
126 Data.Text.Internal.Unsafe
127 Data.Text.Internal.Unsafe.Char
128 Data.Text.Internal.Unsafe.Shift
129 Data.Text.Lazy
130 Data.Text.Lazy.Builder
131 Data.Text.Lazy.Builder.Int
132 Data.Text.Lazy.Builder.RealFloat
133 Data.Text.Lazy.Encoding
134 Data.Text.Lazy.IO
135 Data.Text.Lazy.Internal
136 -- Data.Text.Lazy.Read
137 Data.Text.Read
138 Data.Text.Unsafe
139 -- moved from ghcjs-base
140 -- reflex-dom depends in it
141 Data.JSString.Text
143 -- other-modules:
144 -- Data.Text.Show
146 build-depends:
147 array >= 0.3,
148 base >= 4.2 && < 5,
149 binary,
150 deepseq >= 1.1.0.0,
151 ghcjs-base,
152 ghcjs-prim,
153 ghc-prim >= 0.2
155 if flag(bytestring-builder)
156 build-depends: bytestring >= 0.9 && < 0.10.4,
157 bytestring-builder >= 0.10.4
158 else
159 build-depends: bytestring >= 0.10.4
161 cpp-options: -DHAVE_DEEPSEQ
162 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
163 if flag(developer)
164 ghc-prof-options: -auto-all
165 ghc-options: -Werror
166 cpp-options: -DASSERTS
168 if flag(integer-simple)
169 cpp-options: -DINTEGER_SIMPLE
170 build-depends: integer-simple >= 0.1 && < 0.5
171 else
172 cpp-options: -DINTEGER_GMP
173 build-depends: integer-gmp >= 0.2
175test-suite tests
176 type: exitcode-stdio-1.0
177 c-sources: cbits/cbits.c
178 include-dirs: include
180 ghc-options:
181 -Wall -threaded -rtsopts
183 cpp-options:
184 -DASSERTS -DHAVE_DEEPSEQ -DTEST_SUITE
186 -- modules specific to test-suite
187 hs-source-dirs: tests
188 main-is: Tests.hs
189 other-modules:
190 Tests.Properties
191 Tests.Properties.Mul
192 Tests.QuickCheckUtils
193 Tests.Regressions
194 Tests.SlowFunctions
195 Tests.Utils
197 -- Same as in `library` stanza; this is needed by cabal for accurate
198 -- file-monitoring as well as to avoid `-Wmissing-home-modules`
199 -- warnings We can't use an inter-package library dependency because
200 -- of different `ghc-options`/`cpp-options` (as a side-benefitt,
201 -- this enables per-component build parallelism in `cabal
202 -- new-build`!); We could, however, use cabal-version:2.2's `common`
203 -- blocks at some point in the future to reduce the duplication.
204 hs-source-dirs: .
205 other-modules:
206 Data.Text
207 Data.Text.Array
208 Data.Text.Encoding
209 Data.Text.Encoding.Error
210 Data.Text.Foreign
211 Data.Text.IO
212 Data.Text.Internal
213 Data.Text.Internal.Builder
214 Data.Text.Internal.Builder.Functions
215 Data.Text.Internal.Builder.Int.Digits
216 Data.Text.Internal.Builder.RealFloat.Functions
217 Data.Text.Internal.Encoding.Fusion
218 Data.Text.Internal.Encoding.Fusion.Common
219 Data.Text.Internal.Encoding.Utf16
220 Data.Text.Internal.Encoding.Utf32
221 Data.Text.Internal.Encoding.Utf8
222 Data.Text.Internal.Functions
223 Data.Text.Internal.Fusion
224 Data.Text.Internal.Fusion.CaseMapping
225 Data.Text.Internal.Fusion.Common
226 Data.Text.Internal.Fusion.Size
227 Data.Text.Internal.Fusion.Types
228 Data.Text.Internal.IO
229 Data.Text.Internal.Lazy
230 Data.Text.Internal.Lazy.Encoding.Fusion
231 Data.Text.Internal.Lazy.Fusion
232 Data.Text.Internal.Lazy.Search
233 Data.Text.Internal.Private
234 Data.Text.Internal.Read
235 Data.Text.Internal.Search
236 Data.Text.Internal.Unsafe
237 Data.Text.Internal.Unsafe.Char
238 Data.Text.Internal.Unsafe.Shift
239 Data.Text.Lazy
240 Data.Text.Lazy.Builder
241 Data.Text.Lazy.Builder.Int
242 Data.Text.Lazy.Builder.RealFloat
243 Data.Text.Lazy.Encoding
244 Data.Text.Lazy.IO
245 Data.Text.Lazy.Internal
246 Data.Text.Lazy.Read
247 Data.Text.Read
248 Data.Text.Unsafe
249 Data.Text.Show
251 build-depends:
252 HUnit >= 1.2,
253 QuickCheck >= 2.7 && < 2.12,
254 array,
255 base,
256 binary,
257 deepseq,
258 directory,
259 ghc-prim,
260 ghcjs-prim,
261 ghcjs-base,
262 quickcheck-unicode >= 1.0.1.0,
263 random,
264 test-framework >= 0.4,
265 test-framework-hunit >= 0.2,
266 test-framework-quickcheck2 >= 0.2
268 if flag(bytestring-builder)
269 build-depends: bytestring >= 0.9 && < 0.10.4,
270 bytestring-builder >= 0.10.4
271 else
272 build-depends: bytestring >= 0.10.4
274 if flag(integer-simple)
275 cpp-options: -DINTEGER_SIMPLE
276 build-depends: integer-simple >= 0.1 && < 0.5
277 else
278 cpp-options: -DINTEGER_GMP
279 build-depends: integer-gmp >= 0.2
281source-repository head
282 type: git
283 location: https://github.com/haskell/text
285source-repository head
286 type: mercurial
287 location: https://bitbucket.org/bos/text