forked from IntersectMBO/plutus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplutus-core.cabal
808 lines (765 loc) · 21.2 KB
/
plutus-core.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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
cabal-version: 3.0
name: plutus-core
version: 1.1.1.0
license: Apache-2.0
license-files:
LICENSE
NOTICE
maintainer: [email protected]
author: Plutus Core Team
synopsis: Language library for Plutus Core
description: Pretty-printer, parser, and typechecker for Plutus Core.
category: Language, Plutus
build-type: Simple
extra-doc-files: README.md
extra-source-files:
cost-model/data/*.R
cost-model/data/benching.csv
cost-model/data/builtinCostModel.json
cost-model/data/cekMachineCosts.json
plutus-core/test/CostModelInterface/defaultCostModelParams.json
source-repository head
type: git
location: https://github.com/input-output-hk/plutus
-- inline-r is a problematic dependency. It doesn't build with newer
-- versions of R, so if we depend on it then people need to install
-- an old R. This is not so bad for people working on plutus itself
-- (use Nix or work it out), although we may want to eventually
-- purge it. However, due to a cabal bug (https://github.com/haskell/cabal/issues/4087),
-- in some cases cabal will require R to be installed _at solving time_,
-- even though it never wants to build it. This means that the problem
-- leaks into our downstream dependencies. So our solution is to guard
-- the dependency behind a flag, off by default, and turn it on for
-- ourselves locally.
flag with-inline-r
description: Enable build of packages that use `inline-r`.
manual: True
default: False
common lang
default-language: Haskell2010
default-extensions:
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveLift
DeriveTraversable
DerivingStrategies
DerivingVia
ExplicitForAll
FlexibleContexts
GeneralizedNewtypeDeriving
ImportQualifiedPost
ScopedTypeVariables
StandaloneDeriving
ghc-options:
-Wall -Wnoncanonical-monad-instances -Wincomplete-uni-patterns
-Wincomplete-record-updates -Wredundant-constraints -Widentities
-Wunused-packages -Wmissing-deriving-strategies
library
import: lang
exposed-modules:
Crypto
Data.ByteString.Hash
Data.Either.Extras
Data.MultiSet.Lens
Data.SatInt
ErrorCode
PlutusCore
PlutusCore.Builtin
PlutusCore.Builtin.Debug
PlutusCore.Builtin.Elaborate
PlutusCore.Builtin.Emitter
PlutusCore.Check.Normal
PlutusCore.Check.Scoping
PlutusCore.Check.Uniques
PlutusCore.Check.Value
PlutusCore.Compiler
PlutusCore.Compiler.Erase
PlutusCore.Core
PlutusCore.Data
PlutusCore.DataFilePaths
PlutusCore.DeBruijn
PlutusCore.Default
PlutusCore.Error
PlutusCore.Evaluation.Machine.BuiltinCostModel
PlutusCore.Evaluation.Machine.Ck
PlutusCore.Evaluation.Machine.CostingFun.Core
PlutusCore.Evaluation.Machine.CostingFun.JSON
PlutusCore.Evaluation.Machine.CostModelInterface
PlutusCore.Evaluation.Machine.ExBudget
PlutusCore.Evaluation.Machine.ExBudgetingDefaults
PlutusCore.Evaluation.Machine.Exception
PlutusCore.Evaluation.Machine.ExMemory
PlutusCore.Evaluation.Machine.MachineParameters
PlutusCore.Evaluation.Machine.MachineParameters.Default
PlutusCore.Evaluation.Result
PlutusCore.Examples.Builtins
PlutusCore.Examples.Data.Data
PlutusCore.Examples.Data.InterList
PlutusCore.Examples.Data.List
PlutusCore.Examples.Data.Pair
PlutusCore.Examples.Data.Shad
PlutusCore.Examples.Data.TreeForest
PlutusCore.Examples.Data.Vec
PlutusCore.Examples.Everything
PlutusCore.Flat
PlutusCore.FsTree
PlutusCore.Mark
PlutusCore.MkPlc
PlutusCore.Name
PlutusCore.Normalize
PlutusCore.Normalize.Internal
PlutusCore.Parser
PlutusCore.Pretty
PlutusCore.Quote
PlutusCore.Rename
PlutusCore.Rename.Internal
PlutusCore.Rename.Monad
PlutusCore.StdLib.Data.Bool
PlutusCore.StdLib.Data.ChurchNat
PlutusCore.StdLib.Data.Data
PlutusCore.StdLib.Data.Function
PlutusCore.StdLib.Data.Integer
PlutusCore.StdLib.Data.List
PlutusCore.StdLib.Data.Nat
PlutusCore.StdLib.Data.Pair
PlutusCore.StdLib.Data.ScottList
PlutusCore.StdLib.Data.ScottUnit
PlutusCore.StdLib.Data.Sum
PlutusCore.StdLib.Data.Unit
PlutusCore.StdLib.Everything
PlutusCore.StdLib.Meta
PlutusCore.StdLib.Meta.Data.Function
PlutusCore.StdLib.Meta.Data.Tuple
PlutusCore.StdLib.Type
PlutusCore.Subst
PlutusCore.TypeCheck
PlutusCore.TypeCheck.Internal
PlutusIR
PlutusIR.Analysis.RetainedSize
PlutusIR.Compiler
PlutusIR.Compiler.Datatype
PlutusIR.Compiler.Definitions
PlutusIR.Compiler.Names
PlutusIR.Core
PlutusIR.Core.Instance
PlutusIR.Core.Instance.Flat
PlutusIR.Core.Instance.Pretty
PlutusIR.Core.Instance.Pretty.Readable
PlutusIR.Core.Instance.Scoping
PlutusIR.Core.Plated
PlutusIR.Core.Type
PlutusIR.Error
PlutusIR.Mark
PlutusIR.MkPir
PlutusIR.Parser
PlutusIR.Purity
PlutusIR.Subst
PlutusIR.Transform.Beta
PlutusIR.Transform.DeadCode
PlutusIR.Transform.Inline
PlutusIR.Transform.LetFloat
PlutusIR.Transform.LetMerge
PlutusIR.Transform.NonStrict
PlutusIR.Transform.RecSplit
PlutusIR.Transform.Rename
PlutusIR.Transform.Substitute
PlutusIR.Transform.ThunkRecursions
PlutusIR.Transform.Unwrap
PlutusIR.TypeCheck
PlutusIR.TypeCheck.Internal
PlutusPrelude
Prettyprinter.Custom
Universe
UntypedPlutusCore
UntypedPlutusCore.Check.Scope
UntypedPlutusCore.Check.Uniques
UntypedPlutusCore.Core
UntypedPlutusCore.Core.Type
UntypedPlutusCore.DeBruijn
UntypedPlutusCore.Evaluation.Machine.Cek
UntypedPlutusCore.Evaluation.Machine.Cek.CekMachineCosts
UntypedPlutusCore.Evaluation.Machine.Cek.Internal
UntypedPlutusCore.MkUPlc
UntypedPlutusCore.Parser
UntypedPlutusCore.Rename
hs-source-dirs:
plutus-core/src plutus-core/stdlib plutus-core/examples
plutus-ir/src untyped-plutus-core/src prelude common
other-modules:
Data.Aeson.Flatten
Data.Aeson.THReader
Data.Functor.Foldable.Monadic
GHC.Natural.Extras
PlutusCore.Analysis.Definitions
PlutusCore.Builtin.HasConstant
PlutusCore.Builtin.KnownKind
PlutusCore.Builtin.KnownType
PlutusCore.Builtin.KnownTypeAst
PlutusCore.Builtin.Meaning
PlutusCore.Builtin.Polymorphism
PlutusCore.Builtin.Runtime
PlutusCore.Builtin.TestKnown
PlutusCore.Builtin.TypeScheme
PlutusCore.Core.Instance
PlutusCore.Core.Instance.Eq
PlutusCore.Core.Instance.Pretty
PlutusCore.Core.Instance.Pretty.Classic
PlutusCore.Core.Instance.Pretty.Common
PlutusCore.Core.Instance.Pretty.Default
PlutusCore.Core.Instance.Pretty.Plc
PlutusCore.Core.Instance.Pretty.Readable
PlutusCore.Core.Instance.Recursive
PlutusCore.Core.Instance.Scoping
PlutusCore.Core.Plated
PlutusCore.Core.Type
PlutusCore.DeBruijn.Internal
PlutusCore.Default.Builtins
PlutusCore.Default.Universe
PlutusCore.Eq
PlutusCore.InlineUtils
PlutusCore.Parser.Builtin
PlutusCore.Parser.ParserCommon
PlutusCore.Parser.Type
PlutusCore.Pretty.Classic
PlutusCore.Pretty.ConfigName
PlutusCore.Pretty.Default
PlutusCore.Pretty.Extra
PlutusCore.Pretty.Plc
PlutusCore.Pretty.PrettyConst
PlutusCore.Pretty.Readable
PlutusCore.Pretty.Utils
PlutusCore.Size
PlutusIR.Analysis.Dependencies
PlutusIR.Analysis.Size
PlutusIR.Analysis.Usages
PlutusIR.Compiler.Error
PlutusIR.Compiler.Let
PlutusIR.Compiler.Lower
PlutusIR.Compiler.Provenance
PlutusIR.Compiler.Recursion
PlutusIR.Compiler.Types
PlutusIR.Normalize
Universe.Core
UntypedPlutusCore.Analysis.Definitions
UntypedPlutusCore.Analysis.Usages
UntypedPlutusCore.Core.Instance
UntypedPlutusCore.Core.Instance.Eq
UntypedPlutusCore.Core.Instance.Flat
UntypedPlutusCore.Core.Instance.Pretty
UntypedPlutusCore.Core.Instance.Pretty.Classic
UntypedPlutusCore.Core.Instance.Pretty.Default
UntypedPlutusCore.Core.Instance.Pretty.Plc
UntypedPlutusCore.Core.Instance.Pretty.Readable
UntypedPlutusCore.Core.Instance.Recursive
UntypedPlutusCore.Core.Plated
UntypedPlutusCore.Evaluation.Machine.Cek.EmitterMode
UntypedPlutusCore.Evaluation.Machine.Cek.ExBudgetMode
UntypedPlutusCore.Mark
UntypedPlutusCore.Rename.Internal
UntypedPlutusCore.Simplify
UntypedPlutusCore.Size
UntypedPlutusCore.Subst
UntypedPlutusCore.Transform.ForceDelay
UntypedPlutusCore.Transform.Inline
-- Bound on cardano-crypto-class for the fixed SECP primitives
build-depends:
, aeson
, algebraic-graphs >=0.7
, array
, barbies
, base >=4.9 && <5
, base64-bytestring
, bimap
, bytestring
, cardano-crypto
, cardano-crypto-class ^>=2.0.0.1
, cassava
, cborg
, composition-prelude >=1.1.0.1
, containers
, cryptonite
, data-default-class
, deepseq
, dependent-sum-template
, deriving-aeson >=0.2.3
, deriving-compat
, dlist
, dom-lt
, exceptions
, extra
, filepath
, flat
, ghc-prim
, hashable >=1.4
, hedgehog >=1.0
, index-envs
, int-cast
, lens
, megaparsec
, mmorph
, monoidal-containers
, mtl
, multiset
, nothunks >=0.1.1
, parser-combinators >=0.4.0
, prettyprinter >=1.1.0.1
, prettyprinter-configurable ^>=1.1
, primitive
, recursion-schemes
, semigroupoids
, semigroups >=0.19.1
, serialise
, some
, template-haskell
, text
, th-compat
, th-lift
, th-lift-instances
, th-utilities
, time
, transformers
, unordered-containers
, witherable
, word-array ^>=1.1
if impl(ghc <9.0)
build-depends: integer-gmp
-- could split this up if we split up the main library for UPLC/PLC/PIR
library plutus-core-testlib
import: lang
visibility: public
hs-source-dirs: testlib
exposed-modules:
PlutusCore.Generators.Hedgehog
PlutusCore.Generators.Hedgehog.AST
PlutusCore.Generators.Hedgehog.Builtin
PlutusCore.Generators.Hedgehog.Denotation
PlutusCore.Generators.Hedgehog.Entity
PlutusCore.Generators.Hedgehog.Interesting
PlutusCore.Generators.Hedgehog.Test
PlutusCore.Generators.Hedgehog.TypedBuiltinGen
PlutusCore.Generators.Hedgehog.TypeEvalCheck
PlutusCore.Generators.Hedgehog.Utils
PlutusCore.Generators.NEAT.Common
PlutusCore.Generators.NEAT.Spec
PlutusCore.Generators.NEAT.Term
PlutusCore.Generators.NEAT.Type
PlutusCore.Generators.QuickCheck
PlutusCore.Generators.QuickCheck.Builtin
PlutusCore.Generators.QuickCheck.Common
PlutusCore.Generators.QuickCheck.GenerateKinds
PlutusCore.Generators.QuickCheck.GenerateTypes
PlutusCore.Generators.QuickCheck.GenTm
PlutusCore.Generators.QuickCheck.ShrinkTypes
PlutusCore.Generators.QuickCheck.Substitutions
PlutusCore.Generators.QuickCheck.Unification
PlutusCore.Generators.QuickCheck.Utils
PlutusCore.Test
PlutusIR.Generators.AST
PlutusIR.Test
Test.Tasty.Extras
build-depends:
, base >=4.9 && <5
, bifunctors
, bytestring
, containers
, dependent-map >=0.4.0.0
, filepath
, hedgehog >=1.0
, lazy-search
, lens
, mmorph
, mtl
, multiset
, plutus-core ^>=1.1
, prettyprinter >=1.1.0.1
, prettyprinter-configurable
, QuickCheck
, quickcheck-instances
, quickcheck-transformer
, size-based
, Stream
, tagged
, tasty
, tasty-golden
, tasty-hedgehog
, tasty-hunit
, text
test-suite satint-test
import: lang
type: exitcode-stdio-1.0
main-is: TestSatInt.hs
build-depends:
, base >=4.9 && <5
, HUnit
, plutus-core ^>=1.1
, QuickCheck
, test-framework
, test-framework-hunit
, test-framework-quickcheck2
default-language: Haskell2010
hs-source-dirs: plutus-core/satint-test
test-suite plutus-core-test
import: lang
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: plutus-core/test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
other-modules:
CBOR.DataStability
Check.Spec
CostModelInterface.Spec
Evaluation.Machines
Evaluation.Spec
Names.Spec
Normalization.Check
Normalization.Type
Pretty.Readable
TypeSynthesis.Spec
default-language: Haskell2010
build-depends:
, aeson
, base >=4.9 && <5
, bytestring
, containers
, data-default-class
, filepath
, flat
, hedgehog
, hex-text
, mmorph
, mtl
, plutus-core ^>=1.1
, plutus-core-testlib ^>=1.1
, prettyprinter
, serialise
, tasty
, tasty-golden
, tasty-hedgehog
, tasty-hunit
, template-haskell
, text
, th-lift-instances
, th-utilities
test-suite plutus-ir-test
import: lang
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: plutus-ir/test
other-modules:
GeneratorSpec
GeneratorSpec.Builtin
GeneratorSpec.Substitution
GeneratorSpec.Types
NamesSpec
ParserSpec
TransformSpec
TypeSpec
build-depends:
, base >=4.9 && <5
, containers
, flat
, hedgehog
, lens
, megaparsec
, plutus-core ^>=1.1
, plutus-core-testlib ^>=1.1
, QuickCheck
, serialise
, tasty
, tasty-hedgehog
, tasty-quickcheck
, text
test-suite untyped-plutus-core-test
import: lang
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: untyped-plutus-core/test
ghc-options: -O2 -threaded -rtsopts -with-rtsopts=-N
other-modules:
DeBruijn.Common
DeBruijn.Scope
DeBruijn.Spec
DeBruijn.UnDeBruijnify
Evaluation.Builtins
Evaluation.Builtins.Common
Evaluation.Builtins.Definition
Evaluation.Builtins.MakeRead
Evaluation.Builtins.SignatureVerification
Evaluation.FreeVars
Evaluation.Golden
Evaluation.Machines
Evaluation.Regressions
Generators
Transform.Simplify
build-depends:
, base >=4.9 && <5
, bytestring
, cardano-crypto-class
, flat
, hedgehog
, index-envs
, lens
, mtl
, plutus-core ^>=1.1
, plutus-core-testlib ^>=1.1
, pretty-show
, prettyprinter
, split
, tasty
, tasty-golden
, tasty-hedgehog
, tasty-hunit
, text
executable plc
import: lang
main-is: plc/Main.hs
hs-source-dirs: executables
other-modules:
Common
Parsers
build-depends:
, aeson
, base >=4.9 && <5
, bytestring
, deepseq
, flat
, lens
, megaparsec
, monoidal-containers
, mtl
, optparse-applicative
, plutus-core ^>=1.1
, plutus-core-testlib ^>=1.1
, prettyprinter
, text
executable uplc
import: lang
main-is: uplc/Main.hs
hs-source-dirs: executables
other-modules:
Common
Parsers
build-depends:
, aeson
, base >=4.9 && <5
, bytestring
, deepseq
, flat
, lens
, megaparsec
, monoidal-containers
, mtl
, optparse-applicative
, plutus-core ^>=1.1
, plutus-core-testlib ^>=1.1
, prettyprinter
, split
, text
executable pir
import: lang
main-is: pir/Main.hs
hs-source-dirs: executables
other-modules:
Common
Parsers
build-depends:
, aeson
, base >=4.9 && <5
, bytestring
, cassava
, containers
, deepseq
, flat
, lens
, megaparsec
, monoidal-containers
, mtl
, optparse-applicative
, plutus-core ^>=1.1
, plutus-core-testlib ^>=1.1
, prettyprinter
, text
, transformers
executable traceToStacks
import: lang
main-is: Main.hs
hs-source-dirs: executables/traceToStacks
other-modules: Common
build-depends:
, base >=4.9 && <5
, bytestring
, cassava
, optparse-applicative
, text
, vector
-- Tests for functions called by @traceToStacks@.
test-suite traceToStacks-test
import: lang
type: exitcode-stdio-1.0
hs-source-dirs: executables/traceToStacks
default-language: Haskell2010
main-is: TestGetStacks.hs
other-modules: Common
build-depends:
, base >=4.9 && <5
, bytestring
, cassava
, tasty
, tasty-hunit
, text
, vector
-- This runs the microbenchmarks used to generate the cost models for built-in
-- functions, saving the results in a CSV file which must be specified on the
-- commmand line. It will take several hours.
executable cost-model-budgeting-bench
import: lang
main-is: Main.hs
other-modules:
Benchmarks.Bool
Benchmarks.ByteStrings
Benchmarks.CryptoAndHashes
Benchmarks.Data
Benchmarks.Integers
Benchmarks.Lists
Benchmarks.Misc
Benchmarks.Nops
Benchmarks.Pairs
Benchmarks.Strings
Benchmarks.Tracing
Benchmarks.Unit
Common
CriterionExtensions
Generators
hs-source-dirs: cost-model/budgeting-bench
build-depends:
, base >=4.9 && <5
, bytestring
, cardano-crypto-class
, criterion
, criterion-measurement
, deepseq
, directory
, filepath
, hedgehog
, mtl
, optparse-applicative
, plutus-core ^>=1.1
, QuickCheck
, quickcheck-instances
, random
, text
, time
-- This reads CSV data generated by cost-model-budgeting-bench, uses R to build
-- the cost models for built-in functions, and saves them in a specified
-- JSON file (see the help). The 'official' cost model should be checked in
-- in plutus-core/cost-model/data/builtinCostModel.json.
executable generate-cost-model
import: lang
main-is: Main.hs
hs-source-dirs: cost-model/create-cost-model
ghc-options: -threaded -rtsopts -with-rtsopts=-N
if !flag(with-inline-r)
buildable: False
build-depends:
, aeson-pretty
, barbies
, base >=4.9 && <5
, bytestring
, cassava
, directory
, exceptions
, extra
, inline-r
, optparse-applicative
, plutus-core ^>=1.1
, text
, vector
other-modules: CreateBuiltinCostModel
-- The cost models for builtins are generated using R and converted into a JSON
-- form that can later be used to construct Haskell functions. This tests that
-- the predictions of the Haskell version are (approximately) identical to the R
-- ones. This test is problematic in CI: pretending that it's a benchmark will
-- prevent it from being run automatically but will still allow us to run it
-- manually; `cabal bench` also sets the working directory to the root of the
-- relevant package, which makes it easier to find the cost model data files
-- (unlike `cabal run` for exectuables, which sets the working directory to the
-- current shell directory).
benchmark cost-model-test
import: lang
type: exitcode-stdio-1.0
main-is: TestCostModels.hs
other-modules: TH
hs-source-dirs: cost-model/test cost-model/create-cost-model
if !flag(with-inline-r)
buildable: False
build-depends:
, barbies
, base >=4.9 && <5
, bytestring
, cassava
, exceptions
, extra
, hedgehog
, inline-r
, mmorph
, plutus-core ^>=1.1
, template-haskell
, text
, vector
other-modules: CreateBuiltinCostModel
executable print-cost-model
import: lang
main-is: Main.hs
hs-source-dirs: cost-model/print-cost-model
other-modules: Paths_plutus_core
build-depends:
, aeson
, base >=4.9 && <5
, bytestring
, text
library index-envs
import: lang
hs-source-dirs: index-envs/src
default-language: Haskell2010
exposed-modules:
Data.RandomAccessList.Class
Data.RandomAccessList.RelativizedMap
Data.RandomAccessList.SkewBinary
Data.RandomAccessList.SkewBinarySlab
build-depends:
, base >=4.9 && <5
, containers
, extra
, nonempty-vector
, ral ^>=0.2
-- broken for ral-0.2 conflicts with cardano-binary:recursion-schemes
benchmark index-envs-bench
import: lang
type: exitcode-stdio-1.0
hs-source-dirs: index-envs/bench
default-language: Haskell2010
main-is: Main.hs
build-depends:
, base >=4.9 && <5
, criterion >=1.5.9.0
, index-envs
, nonempty-vector
, ral ^>=0.2
, random >=1.2.0
-- broken for ral-0.2 conflicts with cardano-binary:recursion-schemes
test-suite index-envs-test
import: lang
type: exitcode-stdio-1.0
hs-source-dirs: index-envs/test
default-language: Haskell2010
main-is: Spec.hs
other-modules: RAList.Spec
build-depends:
, base >=4.9 && <5
, index-envs
, nonempty-vector
, QuickCheck
, quickcheck-instances
, tasty
, tasty-quickcheck