forked from haskell/text
/
text.cabal
170 lines (157 loc) · 4.98 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
name: text
version: 0.11.1.13
homepage: https://github.com/bos/text
bug-reports: https://github.com/bos/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. It also
provides a range of functions for converting 'Text' values to and from
'ByteStrings', using several standard encodings.
.
Efficient locale-sensitive support for text IO is also supported.
.
These modules are intended to be imported qualified, to avoid name
clashes with Prelude functions, e.g.
.
> import qualified Data.Text as T
.
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:
<http://hackage.haskell.org/package/text-icu>
.
license: BSD3
license-file: LICENSE
author: Bryan O'Sullivan <bos@serpentine.com>
maintainer: Bryan O'Sullivan <bos@serpentine.com>
copyright: 2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper
category: Data, Text
build-type: Simple
cabal-version: >= 1.8
extra-source-files:
README.markdown
-- scripts/CaseFolding.txt
-- scripts/SpecialCasing.txt
scripts/*.hs
tests/README.markdown
tests/benchmarks/Setup.hs
tests/benchmarks/cbits/*.c
tests/benchmarks/python/*.py
tests/benchmarks/ruby/*.rb
tests/benchmarks/src/Data/Text/*.hs
tests/benchmarks/src/Data/Text/Benchmarks/*.hs
tests/benchmarks/text-benchmarks.cabal
tests/tests/.ghci
tests/tests/Makefile
tests/tests/scripts/*.sh
tests/tests/src/Data/Text/*.hs
tests/tests/src/Data/Text/Tests/*.hs
tests/tests/text-tests.cabal
flag developer
description: operate in developer mode
default: False
library
c-sources: cbits/cbits.c
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.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
other-modules:
Data.Text.Encoding.Fusion
Data.Text.Encoding.Fusion.Common
Data.Text.Encoding.Utf16
Data.Text.Encoding.Utf32
Data.Text.Encoding.Utf8
Data.Text.Fusion
Data.Text.Fusion.CaseMapping
Data.Text.Fusion.Common
Data.Text.Fusion.Internal
Data.Text.Fusion.Size
Data.Text.IO.Internal
Data.Text.Lazy.Builder.Functions
Data.Text.Lazy.Builder.RealFloat.Functions
Data.Text.Lazy.Encoding.Fusion
Data.Text.Lazy.Fusion
Data.Text.Lazy.Search
Data.Text.Private
Data.Text.Search
Data.Text.Unsafe
Data.Text.Unsafe.Base
Data.Text.UnsafeChar
Data.Text.UnsafeShift
Data.Text.Util
build-depends:
array,
base < 5,
bytestring >= 0.9 && < 1.0
if impl(ghc >= 6.10)
build-depends:
ghc-prim, base >= 4, deepseq >= 1.1.0.0
cpp-options: -DHAVE_DEEPSEQ
else
build-depends: extensible-exceptions
extensions: PatternSignatures
ghc-options: -Wall -funbox-strict-fields -O2
if impl(ghc >= 6.8)
ghc-options: -fwarn-tabs
if flag(developer)
ghc-prof-options: -auto-all
ghc-options: -Werror
cpp-options: -DASSERTS
if impl(ghc >= 6.11)
cpp-options: -DINTEGER_GMP
build-depends: integer-gmp >= 0.2 && < 0.5
if impl(ghc >= 6.9) && impl(ghc < 6.11)
cpp-options: -DINTEGER_GMP
build-depends: integer >= 0.1 && < 0.2
test-suite tests
type: exitcode-stdio-1.0
hs-source-dirs: . tests/tests/src
main-is: Data/Text/Tests.hs
c-sources: cbits/cbits.c
ghc-options:
-Wall -threaded -O0 -rtsopts
cpp-options:
-DASSERTS -DHAVE_DEEPSEQ
build-depends:
base >= 4 && < 5,
bytestring >= 0.9 && < 0.10,
deepseq >= 1.1,
ghc-prim,
directory >= 1.0 && < 1.2,
random >= 1.0 && < 1.1,
QuickCheck >= 2.4 && < 2.5,
HUnit >= 1.2 && < 1.3,
test-framework >= 0.4 && < 0.5,
test-framework-quickcheck2 >= 0.2 && < 0.3,
test-framework-hunit >= 0.2 && < 0.3
source-repository head
type: git
location: https://github.com/bos/text
source-repository head
type: mercurial
location: https://bitbucket.org/bos/text