forked from nick8325/quickcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QuickCheck.cabal
167 lines (145 loc) · 5.03 KB
/
QuickCheck.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
Name: QuickCheck
Version: 2.7.6
Cabal-Version: >= 1.8
Build-type: Simple
License: BSD3
License-file: LICENSE
Extra-source-files: README changelog
Copyright: 2000-2014 Koen Claessen, 2006-2008 Björn Bringert, 2009-2014 Nick Smallbone
Author: Koen Claessen <koen@chalmers.se>
Maintainer: QuickCheck developers <quickcheck@projects.haskell.org>
Bug-reports: mailto:quickcheck@projects.haskell.org
Tested-with: GHC >=6.10, Hugs, UHC
Homepage: https://github.com/nick8325/quickcheck
Category: Testing
Synopsis: Automatic testing of Haskell programs
Description:
QuickCheck is a library for random testing of program properties.
.
The programmer provides a specification of the program, in
the form of properties which functions should satisfy, and
QuickCheck then tests that the properties hold in a large number
of randomly generated cases.
.
Specifications are expressed in
Haskell, using combinators defined in the QuickCheck library.
QuickCheck provides combinators to define properties, observe
the distribution of test data, and define test
data generators.
.
For a short tutorial for this package, see <https://ocharles.org.uk/blog/posts/2012-12-08-24-days-of-hackage.html>.
source-repository head
type: git
location: https://github.com/nick8325/quickcheck
source-repository this
type: git
location: https://github.com/nick8325/quickcheck
tag: 2.7.6
flag base3
Description: Choose the new smaller, split-up base package.
flag base4
Description: Choose the even newer base package with extensible exceptions.
flag base4point8
Description: Choose the even more newer base package with natural numbers.
flag templateHaskell
Description: Build Test.QuickCheck.All, which uses Template Haskell.
library
-- Choose which library versions to use.
if flag(base4point8)
Build-depends: base >= 4.8 && < 5
else
if flag(base4)
Build-depends: base >= 4 && < 4.8
else
if flag(base3)
Build-depends: base >= 3 && < 4
else
Build-depends: base < 3
if flag(base4point8) || flag(base4) || flag(base3)
Build-depends: random
Build-depends: containers
-- Modules that are always built.
Exposed-Modules:
Test.QuickCheck,
Test.QuickCheck.Arbitrary,
Test.QuickCheck.Gen,
Test.QuickCheck.Gen.Unsafe,
Test.QuickCheck.Monadic,
Test.QuickCheck.Modifiers,
Test.QuickCheck.Property,
Test.QuickCheck.Test,
Test.QuickCheck.Text,
Test.QuickCheck.Poly,
Test.QuickCheck.State,
Test.QuickCheck.Random,
Test.QuickCheck.Exception
-- GHC-specific modules.
if impl(ghc)
Exposed-Modules: Test.QuickCheck.Function
if impl(ghc >= 7)
Build-depends: transformers >= 0.2
else
cpp-options: -DNO_TRANSFORMERS
if impl(ghc >= 6.12) && flag(templateHaskell)
Build-depends: template-haskell >= 2.4
Exposed-Modules: Test.QuickCheck.All
else
cpp-options: -DNO_TEMPLATE_HASKELL
-- Compiler-specific tweaks, lots of 'em!
-- On old versions of GHC use the ghc package to catch ctrl-C.
if impl(ghc >= 6.7) && impl(ghc < 6.13)
Build-depends: ghc
-- We want to use extensible-exceptions even if linking against base-3.
if impl(ghc >= 6.9) && impl (ghc < 7.0)
Build-depends: extensible-exceptions
-- GHC < 7.0 can't cope with multiple LANGUAGE pragmas in the same file.
if impl(ghc < 7)
Extensions: GeneralizedNewtypeDeriving, MultiParamTypeClasses, Rank2Types, TypeOperators
-- The new generics appeared in GHC 7.2...
if impl(ghc < 7.2)
cpp-options: -DNO_GENERICS
-- ...but in 7.2-7.4 it lives in the ghc-prim package.
if impl(ghc >= 7.2) && impl(ghc < 7.6)
Build-depends: ghc-prim
-- Safe Haskell appeared in GHC 7.2, but GHC.Generics isn't safe until 7.4.
if impl (ghc < 7.4)
cpp-options: -DNO_SAFE_HASKELL
-- Use tf-random on newer GHCs.
if impl(ghc >= 7) && flag(base4)
Build-depends: tf-random >= 0.4
else
cpp-options: -DNO_TF_RANDOM
-- Natural numbers.
if !flag(base4point8)
cpp-options: -DNO_NATURALS
-- Switch off most optional features on non-GHC systems.
if !impl(ghc)
-- If your Haskell compiler can cope without some of these, please
-- send a message to the QuickCheck mailing list!
cpp-options: -DNO_TIMEOUT -DNO_NEWTYPE_DERIVING -DNO_GENERICS -DNO_TEMPLATE_HASKELL -DNO_SAFE_HASKELL
if !impl(hugs) && !impl(uhc)
cpp-options: -DNO_ST_MONAD -DNO_MULTI_PARAM_TYPE_CLASSES
-- LANGUAGE pragmas don't have any effect in Hugs.
if impl(hugs)
Extensions: CPP
if impl(uhc)
-- Cabal under UHC needs pointing out all the dependencies of the
-- random package.
Build-depends: old-time, old-locale
-- Plus some bits of the standard library are missing.
cpp-options: -DNO_FIXED -DNO_EXCEPTIONS
Test-Suite test-quickcheck
type: exitcode-stdio-1.0
hs-source-dirs:
examples
main-is: Heap.hs
build-depends:
base,
containers,
QuickCheck == 2.7.6,
template-haskell >= 2.4,
test-framework >= 0.4 && < 0.9
if flag(templateHaskell)
Buildable: True
else
Buildable: False