-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ homepage: https://github.com/cem-script | |
author: MLabs | ||
maintainer: [email protected] | ||
data-files: | ||
README.md | ||
data/alonzo-params.json | ||
README.md | ||
|
||
-- @todo #3 Reproduce `cabal repl` and HLS build on another (@adamczykm) computer | ||
tested-with: GHC ==9.6.3 | ||
|
@@ -23,11 +23,12 @@ common common-lang | |
-- Options from MLabs styleguide | ||
|
||
ghc-options: | ||
-- -Wall | ||
-- -Wcompat -Wincomplete-record-updates | ||
-- -Wincomplete-uni-patterns -Wredundant-constraints | ||
-- -Wmissing-export-lists -Wmissing-deriving-strategies | ||
-- -Wno-redundant-constraints | ||
|
||
-- -Wall | ||
-- -Wcompat -Wincomplete-record-updates | ||
-- -Wincomplete-uni-patterns -Wredundant-constraints | ||
-- -Wmissing-export-lists -Wmissing-deriving-strategies | ||
-- -Wno-redundant-constraints | ||
|
||
if !flag(dev) | ||
ghc-options: -Werror | ||
|
@@ -63,6 +64,7 @@ common common-lang | |
MultiParamTypeClasses | ||
NamedFieldPuns | ||
NoImplicitPrelude | ||
NoPolyKinds | ||
NumericUnderscores | ||
OverloadedStrings | ||
PatternSynonyms | ||
|
@@ -79,7 +81,6 @@ common common-lang | |
TypeOperators | ||
TypeSynonymInstances | ||
UndecidableInstances | ||
NoPolyKinds | ||
ViewPatterns | ||
|
||
if flag(dev) | ||
|
@@ -94,8 +95,8 @@ common common-onchain | |
, plutus-ledger-api | ||
, plutus-tx | ||
, plutus-tx-plugin | ||
, template-haskell >= 2.20 | ||
, th-abstraction >= 0.6.0.0 | ||
, template-haskell >=2.20 | ||
, th-abstraction >=0.6.0.0 | ||
|
||
-- if flag(dev) | ||
-- ghc-options: -fplugin-opt PlutusTx.Plugin:defer-errors | ||
|
@@ -104,99 +105,94 @@ common common-onchain | |
-- (some are enabled additionaly in individual modules) | ||
|
||
ghc-options: | ||
-fplugin-opt PlutusTx.Plugin:target-version=1.0.0 | ||
-fobject-code | ||
-fplugin-opt PlutusTx.Plugin:target-version=1.0.0 -fobject-code | ||
-fno-ignore-interface-pragmas -fno-omit-interface-pragmas | ||
-fno-specialize -fno-unbox-small-strict-fields | ||
-fno-unbox-strict-fields | ||
-fno-full-laziness | ||
-fno-spec-constr | ||
-fno-strictness | ||
-fno-unbox-small-strict-fields | ||
-fno-unbox-strict-fields -fno-full-laziness -fno-spec-constr | ||
-fno-strictness -fno-unbox-small-strict-fields | ||
|
||
common common-offchain | ||
import: common-lang | ||
build-depends: | ||
, aeson | ||
, bytestring | ||
, pretty-show | ||
, retry | ||
, cardano-api | ||
-- , cardano-cli | ||
, ouroboros-network-protocols | ||
, cardano-ledger-core | ||
, cardano-ledger-babbage | ||
, cardano-crypto-class | ||
, cardano-ledger-alonzo | ||
, cardano-ledger-babbage | ||
, cardano-ledger-core | ||
, cardano-ledger-shelley | ||
, ouroboros-consensus-cardano | ||
, cardano-crypto-class | ||
, containers | ||
, filepath | ||
, ouroboros-consensus-cardano | ||
, ouroboros-network-protocols | ||
, pretty-show | ||
, retry | ||
, text | ||
, time | ||
, unix | ||
|
||
-- , cardano-cli | ||
common common-executable | ||
import: common-offchain | ||
ghc-options: -threaded -rtsopts | ||
|
||
library data-spine | ||
import: | ||
common-lang | ||
import: common-lang | ||
hs-source-dirs: src-lib/data-spine | ||
build-depends: | ||
template-haskell, | ||
singletons, | ||
exposed-modules: | ||
Data.Spine | ||
, singletons | ||
, template-haskell | ||
|
||
exposed-modules: Data.Spine | ||
|
||
library cardano-extras | ||
import: | ||
common-offchain, | ||
common-onchain | ||
hs-source-dirs: | ||
src-lib/cardano-extras | ||
build-depends: | ||
template-haskell, | ||
|
||
hs-source-dirs: src-lib/cardano-extras | ||
build-depends: template-haskell | ||
exposed-modules: | ||
Plutus.Extras | ||
Cardano.Extras | ||
Plutus.Extras | ||
|
||
library | ||
import: | ||
common-onchain, | ||
common-offchain | ||
|
||
hs-source-dirs: src/ | ||
exposed-modules: | ||
Cardano.CEM | ||
Cardano.CEM.Stages | ||
Cardano.CEM.Examples.Auction | ||
Cardano.CEM.Examples.Compilation | ||
-- Cardano.CEM.Examples.Escrow | ||
Cardano.CEM.Examples.Voting | ||
Cardano.CEM.Monads | ||
Cardano.CEM.Monads.L1 | ||
Cardano.CEM.Monads.CLB | ||
Cardano.CEM.Monads.L1 | ||
Cardano.CEM.OnChain | ||
Cardano.CEM.Stages | ||
|
||
-- Cardano.CEM.Examples.Escrow | ||
build-depends: | ||
cem-script:data-spine, | ||
cem-script:cardano-extras, | ||
dependent-map, | ||
singletons-th, | ||
, cem-script:{cardano-extras, data-spine} | ||
, dependent-map | ||
, singletons-th | ||
|
||
test-suite cem-sdk-test | ||
import: | ||
common-onchain, | ||
common-offchain, | ||
|
||
type: exitcode-stdio-1.0 | ||
build-depends: | ||
hspec, | ||
cem-script, | ||
QuickCheck, | ||
quickcheck-dynamic, | ||
cem-script:data-spine, | ||
cem-script:cardano-extras, | ||
dependent-map, | ||
random, | ||
, cem-script:{cem-script, cardano-extras, data-spine} | ||
, dependent-map | ||
, hspec | ||
, QuickCheck | ||
, quickcheck-dynamic | ||
, random | ||
|
||
hs-source-dirs: test/ | ||
main-is: Main.hs |