3homepage: https://github.com/haskell/text
4bug-reports: https://github.com/haskell/text/issues
5synopsis: An efficient packed Unicode text type.
8 An efficient packed, immutable Unicode text type (both strict and
9 lazy), with a powerful loop fusion optimization framework.
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.
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").
22 Efficient locale-sensitive support for text IO is also supported
25 These modules are intended to be imported qualified, to avoid name
26 clashes with Prelude functions, e.g.
28 > import qualified Data.Text as T
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/).
39author: Bryan O'Sullivan <bos@serpentine.com>
40maintainer: Bryan O'Sullivan <bos@serpentine.com>
41copyright: 2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper
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
48 -- scripts/CaseFolding.txt
49 -- scripts/SpecialCasing.txt
53 benchmarks/haskell/*.hs
54 benchmarks/haskell/Benchmarks/*.hs
55 benchmarks/haskell/Benchmarks/Programs/*.hs
56 benchmarks/python/*.py
58 benchmarks/text-benchmarks.cabal
62 tests-and-benchmarks.markdown
67 tests/Tests/Properties/*.hs
70 tests/text-tests.cabal
72flag bytestring-builder
74 Depend on the [bytestring-builder](https://hackage.haskell.org/package/bytestring-builder)
75 package for backwards compatibility.
80 description: operate in developer mode
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)
92 c-sources: cbits/cbits.c
99 Data.Text.Encoding.Error
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
130 Data.Text.Lazy.Builder
131 Data.Text.Lazy.Builder.Int
132 Data.Text.Lazy.Builder.RealFloat
133 Data.Text.Lazy.Encoding
135 Data.Text.Lazy.Internal
136 -- Data.Text.Lazy.Read
139 -- moved from ghcjs-base
140 -- reflex-dom depends in it
155 if flag(bytestring-builder)
156 build-depends: bytestring >= 0.9 && < 0.10.4,
157 bytestring-builder >= 0.10.4
159 build-depends: bytestring >= 0.10.4
161 cpp-options: -DHAVE_DEEPSEQ
162 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
164 ghc-prof-options: -auto-all
166 cpp-options: -DASSERTS
168 if flag(integer-simple)
169 cpp-options: -DINTEGER_SIMPLE
170 build-depends: integer-simple >= 0.1 && < 0.5
172 cpp-options: -DINTEGER_GMP
173 build-depends: integer-gmp >= 0.2
176 type: exitcode-stdio-1.0
177 c-sources: cbits/cbits.c
178 include-dirs: include
181 -Wall -threaded -rtsopts
184 -DASSERTS -DHAVE_DEEPSEQ -DTEST_SUITE
186 -- modules specific to test-suite
187 hs-source-dirs: tests
192 Tests.QuickCheckUtils
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.
209 Data.Text.Encoding.Error
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
240 Data.Text.Lazy.Builder
241 Data.Text.Lazy.Builder.Int
242 Data.Text.Lazy.Builder.RealFloat
243 Data.Text.Lazy.Encoding
245 Data.Text.Lazy.Internal
253 QuickCheck >= 2.7 && < 2.12,
262 quickcheck-unicode >= 1.0.1.0,
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
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
278 cpp-options: -DINTEGER_GMP
279 build-depends: integer-gmp >= 0.2
281source-repository head
283 location: https://github.com/haskell/text
285source-repository head
287 location: https://bitbucket.org/bos/text
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list