Fix unused import warnings for integer-simple build
[packages/text.git] / tests / text-tests.cabal
1 cabal-version: 1.12
2 name:          text-tests
3 version:       0.0.0.0
4
5 synopsis:      Functional tests for the text package
6 description:   Functional tests for the text package
7 homepage:      https://github.com/bos/text
8 license:       BSD2
9 license-file:  ../LICENSE
10 author:        Jasper Van der Jeugt <jaspervdj@gmail.com>,
11                Bryan O'Sullivan <bos@serpentine.com>,
12                Tom Harper <rtomharper@googlemail.com>,
13                Duncan Coutts <duncan@haskell.org>
14 maintainer:    Bryan O'Sullivan <bos@serpentine.com>
15 category:      Text
16 build-type:    Simple
17
18
19 flag hpc
20   description: Enable HPC to generate coverage reports
21   default:     False
22   manual:      True
23
24 flag bytestring-builder
25   description: Depend on the bytestring-builder package for backwards compatibility.
26   default: False
27   manual: False
28
29 executable text-tests
30   main-is: Tests.hs
31
32   other-modules:
33     Tests.Properties
34     Tests.Properties.Mul
35     Tests.QuickCheckUtils
36     Tests.Regressions
37     Tests.SlowFunctions
38     Tests.Utils
39
40   ghc-options:
41     -Wall -threaded -O0 -rtsopts
42
43   if flag(hpc)
44     ghc-options:
45       -fhpc
46
47   cpp-options:
48     -DTEST_SUITE
49     -DASSERTS
50
51   build-depends:
52     HUnit >= 1.2,
53     QuickCheck >= 2.7,
54     base == 4.*,
55     deepseq,
56     directory,
57     quickcheck-unicode >= 1.0.1.0,
58     random,
59     test-framework >= 0.4,
60     test-framework-hunit >= 0.2,
61     test-framework-quickcheck2 >= 0.2,
62     text-tests
63
64   if flag(bytestring-builder)
65     build-depends: bytestring         >= 0.9    && < 0.10.4,
66                    bytestring-builder >= 0.10.4
67   else
68     build-depends: bytestring         >= 0.10.4
69
70   default-language: Haskell2010
71   default-extensions: NondecreasingIndentation
72
73 executable text-tests-stdio
74   main-is:        Tests/IO.hs
75
76   ghc-options:
77     -Wall -threaded -rtsopts
78
79   -- Optional HPC support
80   if flag(hpc)
81     ghc-options:
82       -fhpc
83
84   build-depends:
85     text-tests,
86     base >= 4 && < 5
87
88 library
89   hs-source-dirs: ..
90   c-sources: ../cbits/cbits.c
91   include-dirs: ../include
92   ghc-options: -Wall
93   exposed-modules:
94     Data.Text
95     Data.Text.Array
96     Data.Text.Encoding
97     Data.Text.Encoding.Error
98     Data.Text.Internal.Encoding.Fusion
99     Data.Text.Internal.Encoding.Fusion.Common
100     Data.Text.Internal.Encoding.Utf16
101     Data.Text.Internal.Encoding.Utf32
102     Data.Text.Internal.Encoding.Utf8
103     Data.Text.Foreign
104     Data.Text.Internal.Fusion
105     Data.Text.Internal.Fusion.CaseMapping
106     Data.Text.Internal.Fusion.Common
107     Data.Text.Internal.Fusion.Size
108     Data.Text.Internal.Fusion.Types
109     Data.Text.IO
110     Data.Text.Internal.IO
111     Data.Text.Internal
112     Data.Text.Lazy
113     Data.Text.Lazy.Builder
114     Data.Text.Internal.Builder.Functions
115     Data.Text.Lazy.Builder.Int
116     Data.Text.Internal.Builder.Int.Digits
117     Data.Text.Internal.Builder
118     Data.Text.Lazy.Builder.RealFloat
119     Data.Text.Internal.Builder.RealFloat.Functions
120     Data.Text.Lazy.Encoding
121     Data.Text.Internal.Lazy.Encoding.Fusion
122     Data.Text.Internal.Lazy.Fusion
123     Data.Text.Lazy.IO
124     Data.Text.Internal.Lazy
125     Data.Text.Lazy.Read
126     Data.Text.Internal.Lazy.Search
127     Data.Text.Internal.Private
128     Data.Text.Read
129     Data.Text.Show
130     Data.Text.Internal.Read
131     Data.Text.Internal.Search
132     Data.Text.Unsafe
133     Data.Text.Internal.Unsafe
134     Data.Text.Internal.Unsafe.Char
135     Data.Text.Internal.Unsafe.Shift
136     Data.Text.Internal.Functions
137
138   if flag(hpc)
139     ghc-options:
140       -fhpc
141
142   cpp-options:
143     -DTEST_SUITE
144     -DASSERTS
145     -DINTEGER_GMP
146
147   build-depends:
148     array,
149     base == 4.*,
150     binary,
151     deepseq,
152     ghc-prim,
153     integer-gmp,
154     template-haskell
155
156   if flag(bytestring-builder)
157     build-depends: bytestring         >= 0.9    && < 0.10.4,
158                    bytestring-builder >= 0.10.4
159   else
160     build-depends: bytestring         >= 0.10.4
161
162   default-language: Haskell2010
163   default-extensions: NondecreasingIndentation