text.cabal 5.25 KB
Newer Older
Duncan Coutts's avatar
Duncan Coutts committed
1
name:           text
2
version:        1.1.1.4
3
4
homepage:       https://github.com/bos/text
bug-reports:    https://github.com/bos/text/issues
5
synopsis:       An efficient packed Unicode text type.
bos's avatar
bos committed
6
description:
7
8
9
10
11
12
13
14
15
16
17
    .
    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
bos's avatar
bos committed
18
19
    provides a range of functions for converting 'Text' values to and from
    'ByteStrings', using several standard encodings.
20
21
22
    .
    Efficient locale-sensitive support for text IO is also supported.
    .
bos's avatar
bos committed
23
    These modules are intended to be imported qualified, to avoid name
24
25
26
27
    clashes with Prelude functions, e.g.
    .
    > import qualified Data.Text as T
    .
bos's avatar
bos committed
28
29
30
31
32
    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>
bos's avatar
bos committed
33

Duncan Coutts's avatar
Duncan Coutts committed
34
35
license:        BSD3
license-file:   LICENSE
bos's avatar
bos committed
36
author:         Bryan O'Sullivan <bos@serpentine.com>
bos's avatar
bos committed
37
maintainer:     Bryan O'Sullivan <bos@serpentine.com>
38
copyright:      2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper
Duncan Coutts's avatar
Duncan Coutts committed
39
40
category:       Data, Text
build-type:     Simple
bos's avatar
bos committed
41
cabal-version:  >= 1.8
bos's avatar
bos committed
42
extra-source-files:
bos's avatar
bos committed
43
44
    -- scripts/CaseFolding.txt
    -- scripts/SpecialCasing.txt
bos's avatar
bos committed
45
46
47
    README.markdown
    benchmarks/Setup.hs
    benchmarks/cbits/*.c
bos's avatar
bos committed
48
49
    benchmarks/haskell/*.hs
    benchmarks/haskell/Benchmarks/*.hs
bos's avatar
bos committed
50
    benchmarks/haskell/Benchmarks/Programs/*.hs
bos's avatar
bos committed
51
52
53
    benchmarks/python/*.py
    benchmarks/ruby/*.rb
    benchmarks/text-benchmarks.cabal
bos's avatar
bos committed
54
    changelog.md
bos's avatar
bos committed
55
    include/*.h
56
    scripts/*.hs
bos's avatar
bos committed
57
    tests-and-benchmarks.markdown
bos's avatar
bos committed
58
    tests/*.hs
bos's avatar
bos committed
59
60
    tests/.ghci
    tests/Makefile
bos's avatar
bos committed
61
    tests/Tests/*.hs
bos's avatar
bos committed
62
    tests/cabal.config
bos's avatar
bos committed
63
64
    tests/scripts/*.sh
    tests/text-tests.cabal
Duncan Coutts's avatar
Duncan Coutts committed
65

bos's avatar
bos committed
66
67
68
flag developer
  description: operate in developer mode
  default: False
tibbe's avatar
tibbe committed
69
  manual: True
bos's avatar
bos committed
70

71
72
73
74
flag integer-simple
  description: Use the simple integer library instead of GMP
  default: False

Duncan Coutts's avatar
Duncan Coutts committed
75
library
bos's avatar
bos committed
76
77
  c-sources:    cbits/cbits.c
  include-dirs: include
78

Duncan Coutts's avatar
Duncan Coutts committed
79
80
  exposed-modules:
    Data.Text
81
    Data.Text.Array
82
    Data.Text.Encoding
83
    Data.Text.Encoding.Error
bos's avatar
bos committed
84
    Data.Text.Foreign
bos's avatar
bos committed
85
    Data.Text.IO
86
    Data.Text.Internal
bos's avatar
bos committed
87
88
89
90
    Data.Text.Internal.Builder
    Data.Text.Internal.Builder.Functions
    Data.Text.Internal.Builder.Int.Digits
    Data.Text.Internal.Builder.RealFloat.Functions
91
92
93
94
95
    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
bos's avatar
bos committed
96
    Data.Text.Internal.Functions
bos's avatar
bos committed
97
98
99
100
101
    Data.Text.Internal.Fusion
    Data.Text.Internal.Fusion.CaseMapping
    Data.Text.Internal.Fusion.Common
    Data.Text.Internal.Fusion.Size
    Data.Text.Internal.Fusion.Types
102
    Data.Text.Internal.IO
bos's avatar
bos committed
103
    Data.Text.Internal.Lazy
bos's avatar
bos committed
104
105
106
    Data.Text.Internal.Lazy.Encoding.Fusion
    Data.Text.Internal.Lazy.Fusion
    Data.Text.Internal.Lazy.Search
bos's avatar
bos committed
107
    Data.Text.Internal.Private
bos's avatar
bos committed
108
    Data.Text.Internal.Read
bos's avatar
bos committed
109
110
111
112
    Data.Text.Internal.Search
    Data.Text.Internal.Unsafe
    Data.Text.Internal.Unsafe.Char
    Data.Text.Internal.Unsafe.Shift
bos's avatar
bos committed
113
114
115
116
117
118
119
120
121
122
    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
Duncan Coutts's avatar
Duncan Coutts committed
123
124

  build-depends:
125
126
127
128
129
    array      >= 0.3,
    base       >= 4.2 && < 5,
    deepseq    >= 1.1.0.0,
    ghc-prim   >= 0.2

bos's avatar
bos committed
130
131
132
133
134
  if impl(ghc >= 7.7)
    build-depends: bytestring >= 0.10.4.0
  else
    build-depends: bytestring >= 0.9

135
136
  cpp-options: -DHAVE_DEEPSEQ
  ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
bos's avatar
bos committed
137
  if flag(developer)
138
    ghc-prof-options: -auto-all
bos's avatar
bos committed
139
    ghc-options: -Werror
bos's avatar
bos committed
140
    cpp-options: -DASSERTS
bos's avatar
bos committed
141

142
143
144
145
  if flag(integer-simple)
    cpp-options: -DINTEGER_SIMPLE
    build-depends: integer-simple >= 0.1 && < 0.5
  else
146
    cpp-options: -DINTEGER_GMP
147
    build-depends: integer-gmp >= 0.2
148

bos's avatar
bos committed
149
150
test-suite tests
  type:           exitcode-stdio-1.0
bos's avatar
bos committed
151
  hs-source-dirs: tests .
bos's avatar
bos committed
152
  main-is:        Tests.hs
bos's avatar
bos committed
153
  c-sources:      cbits/cbits.c
bos's avatar
bos committed
154
  include-dirs:   include
bos's avatar
bos committed
155
156
157
158
159

  ghc-options:
    -Wall -threaded -O0 -rtsopts

  cpp-options:
bos's avatar
bos committed
160
    -DASSERTS -DHAVE_DEEPSEQ -DTEST_SUITE
bos's avatar
bos committed
161
162

  build-depends:
bos's avatar
bos committed
163
    HUnit >= 1.2,
164
    QuickCheck >= 2.7,
bos's avatar
bos committed
165
    array,
bos's avatar
bos committed
166
167
168
169
    base,
    bytestring,
    deepseq,
    directory,
bos's avatar
bos committed
170
    ghc-prim,
bos's avatar
bos committed
171
172
173
    random,
    test-framework >= 0.4,
    test-framework-hunit >= 0.2,
bos's avatar
bos committed
174
175
    test-framework-quickcheck2 >= 0.2

176
177
178
179
  if flag(integer-simple)
    cpp-options: -DINTEGER_SIMPLE
    build-depends: integer-simple >= 0.1 && < 0.5
  else
bos's avatar
bos committed
180
    cpp-options: -DINTEGER_GMP
181
    build-depends: integer-gmp >= 0.2
bos's avatar
bos committed
182

bos's avatar
bos committed
183
184
source-repository head
  type:     git
bos's avatar
bos committed
185
  location: https://github.com/bos/text
186
187
188
189

source-repository head
  type:     mercurial
  location: https://bitbucket.org/bos/text