on 53c968d help sign in
text/text.cabal
195 lines 5.5 kB history raw
1name: text
2version: 1.2.1.2
3homepage: https://github.com/bos/text
4bug-reports: https://github.com/bos/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. It also
18 provides a range of functions for converting 'Text' values to and from
19 'ByteStrings', using several standard encodings.
20 .
21 Efficient locale-sensitive support for text IO is also supported.
22 .
23 These modules are intended to be imported qualified, to avoid name
24 clashes with Prelude functions, e.g.
25 .
26 > import qualified Data.Text as T
27 .
28 To use an extended and very rich family of functions for working
29 with Unicode text (including normalization, regular expressions,
30 non-standard encodings, text breaking, and locales), see
31 the @text-icu@ package:
32 <http://hackage.haskell.org/package/text-icu>
34license: BSD3
35license-file: LICENSE
36author: Bryan O'Sullivan <bos@serpentine.com>
37maintainer: Bryan O'Sullivan <bos@serpentine.com>
38copyright: 2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper
39category: Data, Text
40build-type: Simple
41cabal-version: >= 1.8
42extra-source-files:
43 -- scripts/CaseFolding.txt
44 -- scripts/SpecialCasing.txt
45 README.markdown
46 benchmarks/Setup.hs
47 benchmarks/cbits/*.c
48 benchmarks/haskell/*.hs
49 benchmarks/haskell/Benchmarks/*.hs
50 benchmarks/haskell/Benchmarks/Programs/*.hs
51 benchmarks/python/*.py
52 benchmarks/ruby/*.rb
53 benchmarks/text-benchmarks.cabal
54 changelog.md
55 include/*.h
56 scripts/*.hs
57 tests-and-benchmarks.markdown
58 tests/*.hs
59 tests/.ghci
60 tests/Makefile
61 tests/Tests/*.hs
62 tests/Tests/Properties/*.hs
63 tests/cabal.config
64 tests/scripts/*.sh
65 tests/text-tests.cabal
67flag developer
68 description: operate in developer mode
69 default: False
70 manual: True
72flag integer-simple
73 description: Use the simple integer library instead of GMP
75library
76 c-sources: cbits/cbits.c
77 include-dirs: include
79 exposed-modules:
80 Data.Text
81 Data.Text.Array
82 Data.Text.Encoding
83 Data.Text.Encoding.Error
84 Data.Text.Foreign
85 Data.Text.IO
86 Data.Text.Internal
87 Data.Text.Internal.Builder
88 Data.Text.Internal.Builder.Functions
89 Data.Text.Internal.Builder.Int.Digits
90 Data.Text.Internal.Builder.RealFloat.Functions
91 Data.Text.Internal.Encoding.Fusion
92 Data.Text.Internal.Encoding.Fusion.Common
93 Data.Text.Internal.Encoding.Utf16
94 Data.Text.Internal.Encoding.Utf32
95 Data.Text.Internal.Encoding.Utf8
96 Data.Text.Internal.Functions
97 Data.Text.Internal.Fusion
98 Data.Text.Internal.Fusion.CaseMapping
99 Data.Text.Internal.Fusion.Common
100 Data.Text.Internal.Fusion.Size
101 Data.Text.Internal.Fusion.Types
102 Data.Text.Internal.IO
103 Data.Text.Internal.Lazy
104 Data.Text.Internal.Lazy.Encoding.Fusion
105 Data.Text.Internal.Lazy.Fusion
106 Data.Text.Internal.Lazy.Search
107 Data.Text.Internal.Private
108 Data.Text.Internal.Read
109 Data.Text.Internal.Search
110 Data.Text.Internal.Unsafe
111 Data.Text.Internal.Unsafe.Char
112 Data.Text.Internal.Unsafe.Shift
113 Data.Text.Lazy
114 Data.Text.Lazy.Builder
115 Data.Text.Lazy.Builder.Int
116 Data.Text.Lazy.Builder.RealFloat
117 Data.Text.Lazy.Encoding
118 Data.Text.Lazy.IO
119 Data.Text.Lazy.Internal
120 Data.Text.Lazy.Read
121 Data.Text.Read
122 Data.Text.Unsafe
124 other-modules:
125 Data.Text.Show
127 build-depends:
128 array >= 0.3,
129 base >= 4.2 && < 5,
130 binary,
131 deepseq >= 1.1.0.0,
132 ghc-prim >= 0.2
134 if impl(ghc >= 7.7)
135 build-depends: bytestring >= 0.10.4.0
136 else
137 build-depends: bytestring >= 0.9
139 cpp-options: -DHAVE_DEEPSEQ
140 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
141 if flag(developer)
142 ghc-prof-options: -auto-all
143 ghc-options: -Werror
144 cpp-options: -DASSERTS
146 if flag(integer-simple)
147 cpp-options: -DINTEGER_SIMPLE
148 build-depends: integer-simple >= 0.1 && < 0.5
149 else
150 cpp-options: -DINTEGER_GMP
151 build-depends: integer-gmp >= 0.2
153test-suite tests
154 type: exitcode-stdio-1.0
155 hs-source-dirs: tests .
156 main-is: Tests.hs
157 c-sources: cbits/cbits.c
158 include-dirs: include
160 ghc-options:
161 -Wall -threaded -O0 -rtsopts
163 cpp-options:
164 -DASSERTS -DHAVE_DEEPSEQ -DTEST_SUITE
166 build-depends:
167 HUnit >= 1.2,
168 QuickCheck >= 2.7,
169 array,
170 base,
171 binary,
172 bytestring,
173 deepseq,
174 directory,
175 ghc-prim,
176 quickcheck-unicode,
177 random,
178 test-framework >= 0.4,
179 test-framework-hunit >= 0.2,
180 test-framework-quickcheck2 >= 0.2
182 if flag(integer-simple)
183 cpp-options: -DINTEGER_SIMPLE
184 build-depends: integer-simple >= 0.1 && < 0.5
185 else
186 cpp-options: -DINTEGER_GMP
187 build-depends: integer-gmp >= 0.2
189source-repository head
190 type: git
191 location: https://github.com/bos/text
193source-repository head
194 type: mercurial
195 location: https://bitbucket.org/bos/text