forked from haskell/text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext.cabal
226 lines (208 loc) · 6.96 KB
/
text.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
cabal-version: >= 1.10
name: text
version: 1.2.4.1
homepage: https://github.com/haskell/text
bug-reports: https://github.com/haskell/text/issues
synopsis: An efficient packed Unicode text type.
description:
.
An efficient packed, immutable Unicode text type (both strict and
lazy), with a powerful loop fusion optimization framework.
.
The 'Text' type represents Unicode character strings, in a time and
space-efficient manner. This package provides text processing
capabilities that are optimized for performance critical use, both
in terms of large data quantities and high speed.
.
The 'Text' type provides character-encoding, type-safe case
conversion via whole-string case conversion functions (see "Data.Text").
It also provides a range of functions for converting 'Text' values to
and from 'ByteStrings', using several standard encodings
(see "Data.Text.Encoding").
.
Efficient locale-sensitive support for text IO is also supported
(see "Data.Text.IO").
.
These modules are intended to be imported qualified, to avoid name
clashes with Prelude functions, e.g.
.
> import qualified Data.Text as T
.
== ICU Support
.
To use an extended and very rich family of functions for working
with Unicode text (including normalization, regular expressions,
non-standard encodings, text breaking, and locales), see
the [text-icu package](https://hackage.haskell.org/package/text-icu)
based on the well-respected and liberally
licensed [ICU library](http://site.icu-project.org/).
.
== Internal Representation: UTF-16 vs. UTF-8
.
Currently the @text@ library uses UTF-16 as its internal representation
which is [neither a fixed-width nor always the most dense representation](http://utf8everywhere.org/)
for Unicode text. We're currently investigating the feasibility
of [changing Text's internal representation to UTF-8](https://github.com/text-utf8)
and if you need such a 'Text' type right now you might be interested in using the spin-off
packages <https://hackage.haskell.org/package/text-utf8 text-utf8> and
<https://hackage.haskell.org/package/text-short text-short>.
license: BSD2
license-file: LICENSE
author: Bryan O'Sullivan <bos@serpentine.com>
maintainer: Bryan O'Sullivan <bos@serpentine.com>, Herbert Valerio Riedel <hvr@gnu.org>
copyright: 2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper
category: Data, Text
build-type: Simple
tested-with: GHC==8.10.1, GHC==8.8.3, GHC==8.6.5, GHC==8.4.4,
GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4,
GHC==7.6.3, GHC==7.4.2, GHC==7.2.2, GHC==7.0.4
extra-source-files:
-- scripts/CaseFolding.txt
-- scripts/SpecialCasing.txt
README.markdown
benchmarks/Setup.hs
benchmarks/cbits-bench/*.c
benchmarks/haskell/*.hs
benchmarks/haskell/Benchmarks/*.hs
benchmarks/haskell/Benchmarks/Programs/*.hs
benchmarks/python/*.py
benchmarks/ruby/*.rb
benchmarks/text-benchmarks.cabal
changelog.md
include/*.h
scripts/*.hs
tests-and-benchmarks.markdown
tests/*.hs
tests/.ghci
tests/Makefile
tests/Tests/*.hs
tests/Tests/Properties/*.hs
tests/cabal.config
tests/scripts/*.sh
tests/text-tests.cabal
flag bytestring-builder
description:
Depend on the [bytestring-builder](https://hackage.haskell.org/package/bytestring-builder)
package for backwards compatibility.
default: False
manual: False
flag developer
description: operate in developer mode
default: False
manual: True
flag integer-simple
description:
Use the [simple integer library](http://hackage.haskell.org/package/integer-simple)
instead of [integer-gmp](http://hackage.haskell.org/package/integer-gmp)
default: False
manual: False
library
c-sources: cbits/cbits.c
include-dirs: include
hs-source-dirs: src
exposed-modules:
Data.Text
Data.Text.Array
Data.Text.Encoding
Data.Text.Encoding.Error
Data.Text.Foreign
Data.Text.IO
Data.Text.Internal
Data.Text.Internal.Builder
Data.Text.Internal.Builder.Functions
Data.Text.Internal.Builder.Int.Digits
Data.Text.Internal.Builder.RealFloat.Functions
Data.Text.Internal.Encoding.Fusion
Data.Text.Internal.Encoding.Fusion.Common
Data.Text.Internal.Encoding.Utf16
Data.Text.Internal.Encoding.Utf32
Data.Text.Internal.Encoding.Utf8
Data.Text.Internal.Functions
Data.Text.Internal.Fusion
Data.Text.Internal.Fusion.CaseMapping
Data.Text.Internal.Fusion.Common
Data.Text.Internal.Fusion.Size
Data.Text.Internal.Fusion.Types
Data.Text.Internal.IO
Data.Text.Internal.Lazy
Data.Text.Internal.Lazy.Encoding.Fusion
Data.Text.Internal.Lazy.Fusion
Data.Text.Internal.Lazy.Search
Data.Text.Internal.Private
Data.Text.Internal.Read
Data.Text.Internal.Search
Data.Text.Internal.Unsafe
Data.Text.Internal.Unsafe.Char
Data.Text.Internal.Unsafe.Shift
Data.Text.Lazy
Data.Text.Lazy.Builder
Data.Text.Lazy.Builder.Int
Data.Text.Lazy.Builder.RealFloat
Data.Text.Lazy.Encoding
Data.Text.Lazy.IO
Data.Text.Lazy.Internal
Data.Text.Lazy.Read
Data.Text.Read
Data.Text.Unsafe
other-modules:
Data.Text.Show
build-depends:
array >= 0.3 && < 0.6,
base >= 4.3 && < 5,
binary >= 0.5 && < 0.9,
deepseq >= 1.1 && < 1.5,
ghc-prim >= 0.2 && < 0.8,
template-haskell >= 2.5 && < 2.18
if flag(bytestring-builder)
build-depends: bytestring >= 0.9 && < 0.10.4,
bytestring-builder >= 0.10.4.0.2 && < 0.11
else
build-depends: bytestring >= 0.10.4 && < 0.11
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
if flag(developer)
ghc-prof-options: -auto-all
ghc-options: -Werror
cpp-options: -DASSERTS
if impl(ghc >= 8.11)
build-depends: ghc-bignum
else
if flag(integer-simple)
cpp-options: -DINTEGER_SIMPLE
build-depends: integer-simple >= 0.1 && < 0.5
else
cpp-options: -DINTEGER_GMP
build-depends: integer-gmp >= 0.2 && < 1.1
-- compiler specification
default-language: Haskell2010
default-extensions:
NondecreasingIndentation
other-extensions:
BangPatterns
CPP
DeriveDataTypeable
ExistentialQuantification
ForeignFunctionInterface
GeneralizedNewtypeDeriving
MagicHash
OverloadedStrings
Rank2Types
RankNTypes
RecordWildCards
ScopedTypeVariables
TypeFamilies
UnboxedTuples
UnliftedFFITypes
if impl(ghc >= 7.2)
other-extensions: Trustworthy
if impl(ghc >= 7.4)
other-extensions: Safe
if impl(ghc >= 8.0)
other-extensions: TemplateHaskellQuotes
else
other-extensions: TemplateHaskell
source-repository head
type: git
location: https://github.com/haskell/text
source-repository head
type: mercurial
location: https://bitbucket.org/bos/text