Add missing test dependencies
[packages/containers.git] / containers.cabal
1 name: containers
2 version: 0.5.5.1
3 license: BSD3
4 license-file: LICENSE
5 maintainer: fox@ucw.cz
6 bug-reports: https://github.com/haskell/containers/issues
7 synopsis: Assorted concrete container types
8 category: Data Structures
9 description:
10     This package contains efficient general-purpose implementations
11     of various basic immutable container types.  The declared cost of
12     each operation is either worst-case or amortized, but remains
13     valid even if structures are shared.
14 build-type: Simple
15 cabal-version:  >=1.8
16 extra-source-files:
17     include/Typeable.h
18     tests/Makefile
19     tests/*.hs
20     benchmarks/Makefile
21     benchmarks/bench-cmp.pl
22     benchmarks/bench-cmp.sh
23     benchmarks/*.hs
24     benchmarks/SetOperations/Makefile
25     benchmarks/SetOperations/*.hs
26     benchmarks/LookupGE/Makefile
27     benchmarks/LookupGE/*.hs
28
29 source-repository head
30     type:     git
31     location: http://github.com/haskell/containers.git
32
33 Library
34     build-depends: base >= 4.2 && < 5, array, deepseq >= 1.2 && < 1.4
35     if impl(ghc>=6.10)
36         build-depends: ghc-prim
37
38     ghc-options: -O2 -Wall
39
40     exposed-modules:
41         Data.IntMap
42         Data.IntMap.Lazy
43         Data.IntMap.Strict
44         Data.IntSet
45         Data.Map
46         Data.Map.Lazy
47         Data.Map.Strict
48         Data.Set
49     if !impl(nhc98)
50         exposed-modules:
51             Data.Graph
52             Data.Sequence
53             Data.Tree
54     other-modules:
55         Data.BitUtil
56         Data.IntMap.Base
57         Data.IntSet.Base
58         Data.Map.Base
59         Data.Set.Base
60         Data.StrictPair
61
62     include-dirs: include
63
64     if impl(ghc<7.0)
65         extensions: MagicHash, DeriveDataTypeable, StandaloneDeriving, Rank2Types
66     if impl(ghc >= 7.8)
67         extensions: RoleAnnotations
68
69 -------------------
70 -- T E S T I N G --
71 -------------------
72
73 -- Every test-suite contains the build-depends and options of the library,
74 -- plus the testing stuff.
75
76 -- Because the test-suites cannot contain conditionals in GHC 7.0, the extensions
77 -- are switched on for every compiler to allow GHC < 7.0 to compile the tests
78 -- (because GHC < 7.0 cannot handle conditional LANGUAGE pragmas).
79 -- When testing with GHC < 7.0 is not needed, the extensions should be removed.
80
81 Test-suite map-lazy-properties
82     hs-source-dirs: tests, .
83     main-is: map-properties.hs
84     type: exitcode-stdio-1.0
85     cpp-options: -DTESTING
86
87     build-depends: base >= 4.2 && < 5, array, deepseq >= 1.2 && < 1.4, ghc-prim
88     ghc-options: -O2
89     extensions: MagicHash, DeriveDataTypeable, StandaloneDeriving, Rank2Types
90
91     build-depends:
92         HUnit,
93         QuickCheck,
94         test-framework,
95         test-framework-hunit,
96         test-framework-quickcheck2
97
98 Test-suite map-strict-properties
99     hs-source-dirs: tests, .
100     main-is: map-properties.hs
101     type: exitcode-stdio-1.0
102     cpp-options: -DTESTING -DSTRICT
103
104     build-depends: base >= 4.2 && < 5, array, deepseq >= 1.2 && < 1.4, ghc-prim
105     ghc-options: -O2
106     extensions: MagicHash, DeriveDataTypeable, StandaloneDeriving, Rank2Types
107
108     build-depends:
109         HUnit,
110         QuickCheck,
111         test-framework,
112         test-framework-hunit,
113         test-framework-quickcheck2
114
115 Test-suite set-properties
116     hs-source-dirs: tests, .
117     main-is: set-properties.hs
118     type: exitcode-stdio-1.0
119     cpp-options: -DTESTING
120
121     build-depends: base >= 4.2 && < 5, array, deepseq >= 1.2 && < 1.4, ghc-prim
122     ghc-options: -O2
123     extensions: MagicHash, DeriveDataTypeable, StandaloneDeriving, Rank2Types
124
125     build-depends:
126         HUnit,
127         QuickCheck,
128         test-framework,
129         test-framework-hunit,
130         test-framework-quickcheck2
131
132 Test-suite intmap-lazy-properties
133     hs-source-dirs: tests, .
134     main-is: intmap-properties.hs
135     type: exitcode-stdio-1.0
136     cpp-options: -DTESTING
137
138     build-depends: base >= 4.2 && < 5, array, deepseq >= 1.2 && < 1.4, ghc-prim
139     ghc-options: -O2
140     extensions: MagicHash, DeriveDataTypeable, StandaloneDeriving, Rank2Types
141
142     build-depends:
143         HUnit,
144         QuickCheck,
145         test-framework,
146         test-framework-hunit,
147         test-framework-quickcheck2
148
149 Test-suite intmap-strict-properties
150     hs-source-dirs: tests, .
151     main-is: intmap-properties.hs
152     type: exitcode-stdio-1.0
153     cpp-options: -DTESTING -DSTRICT
154
155     build-depends: base >= 4.2 && < 5, array, deepseq >= 1.2 && < 1.4, ghc-prim
156     ghc-options: -O2
157     extensions: MagicHash, DeriveDataTypeable, StandaloneDeriving, Rank2Types
158
159     build-depends:
160         HUnit,
161         QuickCheck,
162         test-framework,
163         test-framework-hunit,
164         test-framework-quickcheck2
165
166 Test-suite intset-properties
167     hs-source-dirs: tests, .
168     main-is: intset-properties.hs
169     type: exitcode-stdio-1.0
170     cpp-options: -DTESTING
171
172     build-depends: base >= 4.2 && < 5, array, deepseq >= 1.2 && < 1.4, ghc-prim
173     ghc-options: -O2
174     extensions: MagicHash, DeriveDataTypeable, StandaloneDeriving, Rank2Types
175
176     build-depends:
177         HUnit,
178         QuickCheck,
179         test-framework,
180         test-framework-hunit,
181         test-framework-quickcheck2
182
183 Test-suite deprecated-properties
184     hs-source-dirs: tests, .
185     main-is: deprecated-properties.hs
186     type: exitcode-stdio-1.0
187     cpp-options: -DTESTING
188
189     build-depends: base >= 4.2 && < 5, array, deepseq >= 1.2 && < 1.4, ghc-prim
190     ghc-options: -O2
191     extensions: MagicHash, DeriveDataTypeable, StandaloneDeriving, Rank2Types
192
193     build-depends:
194         QuickCheck,
195         test-framework,
196         test-framework-quickcheck2
197
198 Test-suite seq-properties
199     hs-source-dirs: tests, .
200     main-is: seq-properties.hs
201     type: exitcode-stdio-1.0
202     cpp-options: -DTESTING
203
204     build-depends: base >= 4.2 && < 5, array, deepseq >= 1.2 && < 1.4, ghc-prim
205     ghc-options: -O2
206     extensions: MagicHash, DeriveDataTypeable, StandaloneDeriving, Rank2Types
207
208     build-depends:
209         QuickCheck,
210         test-framework,
211         test-framework-quickcheck2
212
213 test-suite map-strictness-properties
214   hs-source-dirs: tests, .
215   main-is: MapStrictness.hs
216   type: exitcode-stdio-1.0
217
218   build-depends:
219     array,
220     base >= 4.2 && < 5,
221     ChasingBottoms,
222     deepseq >= 1.2 && < 1.4,
223     QuickCheck >= 2.4.0.1,
224     ghc-prim,
225     test-framework >= 0.3.3,
226     test-framework-quickcheck2 >= 0.2.9
227
228   ghc-options: -Wall
229
230 test-suite intmap-strictness-properties
231   hs-source-dirs: tests, .
232   main-is: IntMapStrictness.hs
233   type: exitcode-stdio-1.0
234
235   build-depends:
236     array,
237     base >= 4.2 && < 5,
238     ChasingBottoms,
239     deepseq >= 1.2 && < 1.4,
240     QuickCheck >= 2.4.0.1,
241     ghc-prim,
242     test-framework >= 0.3.3,
243     test-framework-quickcheck2 >= 0.2.9
244
245   ghc-options: -Wall