text.cabal 5.35 KB
Newer Older
Duncan Coutts's avatar
Duncan Coutts committed
1
name:           text
Ben Gamari's avatar
Ben Gamari committed
2
version:        1.2.1.3
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/Tests/Properties/*.hs
bos's avatar
bos committed
63
    tests/cabal.config
bos's avatar
bos committed
64
65
    tests/scripts/*.sh
    tests/text-tests.cabal
Duncan Coutts's avatar
Duncan Coutts committed
66

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

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

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

bos's avatar
bos committed
124
125
126
  other-modules:
    Data.Text.Show

Duncan Coutts's avatar
Duncan Coutts committed
127
  build-depends:
128
129
    array      >= 0.3,
    base       >= 4.2 && < 5,
bos's avatar
bos committed
130
    binary,
131
132
133
    deepseq    >= 1.1.0.0,
    ghc-prim   >= 0.2

bos's avatar
bos committed
134
135
136
137
138
  if impl(ghc >= 7.7)
    build-depends: bytestring >= 0.10.4.0
  else
    build-depends: bytestring >= 0.9

139
140
  cpp-options: -DHAVE_DEEPSEQ
  ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
bos's avatar
bos committed
141
  if flag(developer)
142
    ghc-prof-options: -auto-all
bos's avatar
bos committed
143
    ghc-options: -Werror
bos's avatar
bos committed
144
    cpp-options: -DASSERTS
bos's avatar
bos committed
145

146
147
148
149
  if flag(integer-simple)
    cpp-options: -DINTEGER_SIMPLE
    build-depends: integer-simple >= 0.1 && < 0.5
  else
150
    cpp-options: -DINTEGER_GMP
151
    build-depends: integer-gmp >= 0.2
152

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

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

  cpp-options:
bos's avatar
bos committed
164
    -DASSERTS -DHAVE_DEEPSEQ -DTEST_SUITE
bos's avatar
bos committed
165
166

  build-depends:
bos's avatar
bos committed
167
    HUnit >= 1.2,
168
    QuickCheck >= 2.7,
bos's avatar
bos committed
169
    array,
bos's avatar
bos committed
170
    base,
bos's avatar
bos committed
171
    binary,
bos's avatar
bos committed
172
173
174
    bytestring,
    deepseq,
    directory,
bos's avatar
bos committed
175
    ghc-prim,
176
    quickcheck-unicode,
bos's avatar
bos committed
177
178
179
    random,
    test-framework >= 0.4,
    test-framework-hunit >= 0.2,
bos's avatar
bos committed
180
181
    test-framework-quickcheck2 >= 0.2

182
183
184
185
  if flag(integer-simple)
    cpp-options: -DINTEGER_SIMPLE
    build-depends: integer-simple >= 0.1 && < 0.5
  else
bos's avatar
bos committed
186
    cpp-options: -DINTEGER_GMP
187
    build-depends: integer-gmp >= 0.2
bos's avatar
bos committed
188

bos's avatar
bos committed
189
190
source-repository head
  type:     git
bos's avatar
bos committed
191
  location: https://github.com/bos/text
192
193
194
195

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