forked from kadena-io/pact
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpact.cabal
378 lines (360 loc) · 10.2 KB
/
pact.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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
cabal-version: 2.2
name: pact
version: 4.0.1
-- ^ 4 digit is prerelease, 3- or 2-digit for prod release
synopsis: Smart contract language library and REPL
description:
Pact is a transactional, database-focused, Turing-incomplete, interpreted language for smart contracts,
logic to be deployed and executed on a blockchain/distributed ledger. For more information see
<http://kadena.io/pact>.
homepage: https://github.com/kadena-io/pact
bug-reports: https://github.com/kadena-io/pact/issues
license: BSD-3-Clause
license-file: LICENSE
author: Stuart Popejoy
maintainer: stuart@kadena.io
copyright: Copyright (C) 2016 Stuart Popejoy
category: Language
build-type: Simple
flag cryptonite-ed25519
description: use cryptonite instead of ed25519-donna
default: False
manual: True
flag ghc-flags
description: Generate .ghc.flags files during compilation
default: False
manual: True
flag build-tool
description: Include modules and deps for tests + executable
default: True
manual: True
library
-- common to all configurations:
hs-source-dirs: src
default-language: Haskell2010
ghc-prof-options: -fprof-auto -fprof-auto-calls
exposed-modules:
Crypto.Hash.Blake2Native
Pact.Analyze.Remote.Types
Pact.Compile
Pact.Eval
Pact.Gas
Pact.Gas.Table
Pact.Native
Pact.Native.Capabilities
Pact.Native.Db
Pact.Native.Internal
Pact.Native.SPV
Pact.Native.Time
Pact.Native.Ops
Pact.Native.Keysets
Pact.Native.Decrypt
Pact.Parse
Pact.PersistPactDb
Pact.Persist
Pact.Persist.Pure
Pact.Repl
Pact.Repl.Lib
Pact.Repl.Types
Pact.Runtime.Capabilities
Pact.Runtime.Typecheck
Pact.Runtime.Utils
Pact.Server.API
Pact.Types.API
Pact.Types.Capability
Pact.Types.ChainId
Pact.Types.ChainMeta
Pact.Types.Codec
Pact.Types.Command
Pact.Types.Continuation
Pact.Types.Scheme
Pact.Types.Exp
Pact.Types.ExpParser
Pact.Types.Gas
Pact.Types.Hash
Pact.Types.Info
Pact.Types.Lang
Pact.Types.Logger
Pact.Types.Names
Pact.Types.Native
Pact.Types.PactError
Pact.Types.PactValue
Pact.Types.Parser
Pact.Types.Advice
Pact.Types.Persistence
Pact.Types.Pretty
Pact.Types.Purity
Pact.Types.RPC
Pact.Types.Runtime
Pact.Types.Orphans
Pact.Types.SigData
Pact.Types.SizeOf
Pact.Types.SPV
Pact.Types.Term
Pact.Types.Type
Pact.Types.Util
Pact.Types.Version
Pact.Types.Typecheck
Pact.Typechecker
build-depends:
, Decimal >= 0.4.2 && < 0.6
, QuickCheck >= 2.12.6.1
, aeson >= 0.11.3.0 && < 1.6
, attoparsec >= 0.13.0.2 && < 0.15
, base >=4.9.0.0 && < 4.16
, base16-bytestring >=0.1.1.6 && < 0.2
, base64-bytestring >= 1.0.0.1 && < 1.2.0.0
-- base64-bytestring >= 1.2.0.0 is less lenient then previous versions, which can cause pact failures (e.g. (env-hash "aa"))
, bound >= 2 && < 2.1
, bytestring >=0.10.8.1 && < 0.12
, cereal >=0.5.4.0 && < 0.6
, containers >= 0.5.7 && < 0.7
, data-default >= 0.7.1.1 && < 0.8
, deepseq >= 1.4.2.0 && < 1.5
, deriving-compat >= 0.5.1
, directory >= 1.2.6.2 && < 1.4
, errors >= 2.3
, exceptions >= 0.8.3 && < 0.11
, filepath >= 1.4.1.0 && < 1.5
, hashable >= 1.2.4.0 && < 1.4
, lens >= 4.14 && < 5.1
, lens-aeson >= 1.0.0.5 && < 1.2
, megaparsec >= 9
, mtl >= 2.2.1 && < 2.3
, pact-time >= 0.2
, parsers >= 0.12.4 && < 0.13
, prettyprinter >= 1.2 && < 1.6.1
, prettyprinter-ansi-terminal >= 1.1 && < 1.2
, quickcheck-instances >= 0.3
, reflection
, safe >= 0.3.11 && < 0.4
, semigroupoids >= 5.0
, servant
, text >= 1.2.2.1 && < 1.3
, transformers >= 0.5.2.0 && < 0.6
, trifecta >= 2.1
, unordered-containers >= 0.2.7.2 && < 0.3
, utf8-string >= 1.0.1.1 && < 1.1
, vector >= 0.11.0.0 && < 0.13
, vector-algorithms >= 0.7
, vector-space >= 0.10.4 && < 0.17
if flag(ghc-flags)
build-tool-depends: hsinspect:hsinspect
ghc-options: -fplugin GhcFlags.Plugin
build-depends: ghcflags
-- GHCJS
if impl(ghcjs)
exposed-modules:
Pact.Analyze.Remote.Client
build-depends:
, ghcjs-base
, ghcjs-dom
, ghcjs-prim
, optparse-applicative >= 0.12.1.0 && < 0.16
-- Normal GHC
else
hs-source-dirs: src-ghc
ghc-options: -Wall -Werror -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
exposed-modules:
Pact.ApiReq
Pact.Coverage
Pact.Coverage.Report
Pact.Interpreter
Pact.MockDb
Pact.Persist.MockPersist
Pact.Persist.SQLite
Pact.PersistPactDb.Regression
Pact.Server.PactService
Pact.Types.Crypto
Pact.Types.ECDSA
Pact.Types.Server
Pact.Types.SQLite
build-depends:
, criterion >= 1.1.4 && < 1.6
, cryptonite
, direct-sqlite
, http-client
, memory
, safe-exceptions >= 0.1.5.0 && < 0.2
, servant-client
, servant-client-core
, statistics >= 0.13.3 && < 0.16
, yaml
if flag(build-tool)
hs-source-dirs: src-tool
cpp-options: -DBUILD_TOOL
exposed-modules:
Pact.Docgen
Pact.Analyze
Pact.Analyze.Alloc
Pact.Analyze.Eval
Pact.Analyze.Eval.Invariant
Pact.Analyze.Eval.Numerical
Pact.Analyze.Eval.Prop
Pact.Analyze.Eval.Core
Pact.Analyze.Eval.Term
Pact.Analyze.Check
Pact.Analyze.Errors
Pact.Analyze.Feature
Pact.Analyze.PactSFunArray
Pact.Analyze.Model
Pact.Analyze.Model.Dot
Pact.Analyze.Model.Graph
Pact.Analyze.Model.Tags
Pact.Analyze.Model.Text
Pact.Analyze.Parse
Pact.Analyze.Parse.Invariant
Pact.Analyze.Parse.Prop
Pact.Analyze.Parse.Types
Pact.Analyze.Patterns
Pact.Analyze.PrenexNormalize
Pact.Analyze.Translate
Pact.Analyze.Types
Pact.Analyze.Types.Capability
Pact.Analyze.Types.Eval
Pact.Analyze.Types.Languages
Pact.Analyze.Types.Model
Pact.Analyze.Types.Numerical
Pact.Analyze.Types.ObjUtil
Pact.Analyze.Types.Shared
Pact.Analyze.Types.Types
Pact.Analyze.Util
Pact.Analyze.Remote.Server
Pact.Bench
Pact.Main
Pact.ReplTools
Pact.Server.ApiServer
Pact.Server.History.Persistence
Pact.Server.History.Service
Pact.Server.History.Types
Pact.Server.Server
Pact.Server.Test
Pact.GasModel.GasModel
Pact.GasModel.Types
Pact.GasModel.Utils
Pact.GasModel.GasTests
build-depends:
, algebraic-graphs >= 0.2 && < 0.6
, async
, cassava >= 0.5
, constraints
, fast-logger
, haskeline >= 0.7.3 && < 0.9
, mmorph >= 1.1 && < 1.2
, neat-interpolation >= 0.4
, optparse-applicative >= 0.12.1.0 && < 0.16
, sbv >= 8.8
, servant-server
, wai-cors
, warp
if flag(cryptonite-ed25519)
cpp-options: -DCRYPTONITE_ED25519
else
build-depends:
, crypto-api
, ed25519-donna
if !os(windows)
build-depends: unix
executable pact
if impl(ghcjs) || !flag(build-tool)
buildable: False
main-is: Repl.hs
build-depends: base
, pact
hs-source-dirs: executables
ghc-options: -Wall -threaded -rtsopts -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
ghc-prof-options: -fprof-auto -fprof-auto-calls
default-language: Haskell2010
if os(darwin)
ghc-options: -optP-Wno-nonportable-include-path
benchmark bench
if impl(ghcjs) || !flag(build-tool)
buildable: False
type: exitcode-stdio-1.0
main-is: Bench.hs
build-depends: base
, pact
hs-source-dirs: executables pact-lang-api.js
ghc-options: -Wall -threaded -rtsopts "-with-rtsopts=-N" -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
ghc-prof-options: -fprof-auto -fprof-auto-calls
default-language: Haskell2010
executable gasmodel
if impl(ghcjs) || !flag(build-tool)
buildable: False
main-is: GasModel.hs
build-depends: base
, pact
hs-source-dirs: executables
ghc-options: -Wall -threaded -rtsopts -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
ghc-prof-options: -fprof-auto -fprof-auto-calls
default-language: Haskell2010
test-suite hspec
main-is: PactTests.hs
type: exitcode-stdio-1.0
hs-source-dirs: tests
default-language: Haskell2010
ghc-options: -Wall -threaded -rtsopts -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
build-depends:
, aeson
, base
, bound
, bytestring
, containers
, data-default
, hspec
, pact
, unordered-containers
other-modules:
Blake2Spec
KeysetSpec
TypesSpec
if !impl(ghcjs)
other-modules:
PactTestsSpec
ParserSpec
SchemeSpec
SignatureSpec
build-depends:
, base16-bytestring
, directory
, errors
, filepath
, lens
, mtl
, text
, transformers
if flag(build-tool)
cpp-options: -DBUILD_TOOL
other-modules:
AnalyzePropertiesSpec
AnalyzeSpec
Analyze.Eval
Analyze.Gen
Analyze.TimeGen
Analyze.Translate
ClientSpec
DocgenSpec
GasModelSpec
GoldenSpec
HistoryServiceSpec
PactContinuationSpec
PersistSpec
RemoteVerifySpec
TypecheckSpec
build-depends:
, Decimal
, QuickCheck
, deepseq
, exceptions
, hedgehog >= 1.0.1 && < 1.1
, hspec-golden >= 0.1.0.2
, http-client
, hw-hspec-hedgehog == 0.1.*
, intervals
, mmorph
, neat-interpolation
, prettyprinter
, sbv
, servant-client
, vector
, yaml