-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcaper.cabal
177 lines (168 loc) · 5.95 KB
/
caper.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
167
168
169
170
171
172
173
174
175
176
177
name: caper
version: 0.1.0.0
synopsis: A tool for automatic program verification.
license: MIT
license-file: LICENSE
author: Thomas Dinsdale-Young, Pedro da Rocha Pinto, Kristoffer Just Andersen
maintainer: [email protected]
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
runtests/*.t
flag z3ffi
description: Enable z3 invocation via FFI (requires z3 package)
default: True
library
default-language: Haskell2010
build-depends:
base >=4.8,
containers ==0.5.*,
control-monad-exception ==0.11.*,
mtl >=2.1,
transformers >=0.3,
parsec ==3.1.*,
lens >=3.9,
time >=1.4,
syb >=0.4,
sbv ==5.12,
multiset >=0.2,
ConfigFile ==1.1.*,
parallel ==3.2.*,
process >=1.2.0.0,
SafeSemaphore >=0.9,
directory >=1.2,
either >=4.3,
vector >=0.10,
template-haskell >=2.8,
transformers >=0.2,
int-cast
hs-source-dirs: src
default-extensions:
CPP
ghc-options: -Wall -fno-warn-unused-matches
if impl(ghc >= 8.0)
ghc-options: -fno-warn-redundant-constraints
exposed-modules:
Caper.Assertions.Check,
Caper.Assertions.Consume,
Caper.Assertions.Generate,
Caper.Assertions.Produce,
Caper.Constants,
Caper.Contexts,
Caper.DeclarationTyping,
Caper.ExceptionContext,
Caper.Exceptions,
Caper.FirstOrder,
Caper.FreeVariables,
Caper.Guards,
Caper.Logger,
Caper.Parser.AST,
Caper.Parser.AST.Annotation,
Caper.Parser.AST.Code,
Caper.Parser.AST.SourcePos,
Caper.Parser.Parser,
Caper.Predicates,
Caper.Procedures,
Caper.Proof,
Caper.Prover,
Caper.ProverDatatypes,
Caper.ProverStates,
Caper.Provers,
Caper.Provers.Permissions.E,
Caper.Provers.Permissions.Internal,
Caper.Provers.Values.SBV,
Caper.RegionInterpretations,
Caper.RegionTypes,
Caper.Regions,
Caper.SymbolicExecution,
Caper.SymbolicState,
Caper.Transitions,
Caper.TypingContext,
Caper.Utils.AliasingMap,
Caper.Utils.Alternating,
Caper.Utils.Choice,
Caper.Utils.Failure,
Caper.Utils.FastEq,
Caper.Utils.FloydWarshall,
Caper.Utils.LiteralFileQQ,
Caper.Utils.MemoIO,
Caper.Utils.Mix,
Caper.Utils.MonadHoist,
Caper.Utils.NondetClasses,
Caper.Utils.PMaybe,
Caper.Utils.SimilarStrings,
Caper.DeductionFailure
if flag(z3ffi)
build-depends: z3 >=4.0.0
cpp-options: -Dz3ffi
other-modules: Caper.Provers.Values.Z3, Caper.Provers.Permissions.SMT, Caper.Provers.Values.Z3plus
if impl(ghc >= 7.10)
cpp-options: -Doverlap_pragmas
if impl(ghc < 8.0)
build-depends: template-haskell <2.11
executable Caper
default-language: Haskell2010
hs-source-dirs: executable
main-is: Caper.hs
default-extensions: CPP
ghc-options: -Wall -rtsopts -threaded
build-depends: base >= 4.6
, caper
, argparser >= 0.3.4
, mtl >= 2.2.1
executable Interpreter
default-language: Haskell2010
build-depends:
base >= 4,
caper,
parsec >=3.1 && <3.2,
mtl >=2.1.2,
template-haskell >=2.8,
lens >=3.9,
containers >=0.5 && <0.6
hs-source-dirs: interpreter
ghc-options: -W -rtsopts
main-is: Interpreter.hs
if impl(ghc < 8.0)
build-depends: template-haskell <2.11
other-modules: Caper.Interpreter.Environment
, Caper.Interpreter.Interpreter
executable RunTests
default-language: Haskell2010
build-depends:
base >= 4,
caper,
template-haskell >=2.8,
directory >= 1.2,
text >= 1.1,
filepath >= 1.3,
shelly >= 1.6,
ansi-terminal >= 0.6,
containers >= 0.5
hs-source-dirs: Tests
main-is: RunTests.hs
if impl(ghc < 8.0)
build-depends: template-haskell <2.11
test-suite tasty-suite
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: tasty-suite
main-is: Main.hs
build-depends: base >= 4.6
, tasty
, tasty-quickcheck
, tasty-hunit
, HUnit
, QuickCheck
, caper
, containers
, time
, lens
, mtl
, parsec
, either
, directory
, filepath
, template-haskell
, process
, text