From 38265470c0513d2d77252f2b224e3787ec24e625 Mon Sep 17 00:00:00 2001 From: Wong Heung Sang <35202375+whs-dot-hk@users.noreply.github.com> Date: Fri, 8 Jul 2022 10:42:49 +0000 Subject: [PATCH 1/2] Remove old tutorial section (#574) --- plutus-ledger/README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plutus-ledger/README.md b/plutus-ledger/README.md index 518098065d..818dfb9119 100644 --- a/plutus-ledger/README.md +++ b/plutus-ledger/README.md @@ -1,7 +1,3 @@ ## Wallet API This contains a draft of the Plutus wallet API and an emulator for testing contracts. - -## Tutorial - -See [here](tutorial/Tutorial.md) for a tutorial. \ No newline at end of file From 50b7bb5a270d0d95e1d165fa0f82421bf9177ff4 Mon Sep 17 00:00:00 2001 From: koslambrou Date: Fri, 8 Jul 2022 13:53:50 -0400 Subject: [PATCH 2/2] Reorganized the dependencies (build-depends) in the cabal files (#575) --- doc/plutus-doc.cabal | 45 ++- freer-extras/freer-extras.cabal | 28 +- playground-common/playground-common.cabal | 51 +++- .../plutus-chain-index-core.cabal | 53 +++- plutus-chain-index/plutus-chain-index.cabal | 43 ++- .../plutus-contract-certification.cabal | 20 +- plutus-contract/plutus-contract.cabal | 72 +++-- plutus-example/plutus-example.cabal | 77 ++++- .../plutus-ledger-constraints.cabal | 53 +++- plutus-ledger/plutus-ledger.cabal | 66 +++-- .../plutus-pab-executables.cabal | 273 +++++++++++++----- plutus-pab/plutus-pab.cabal | 73 +++-- .../plutus-playground-server.cabal | 141 ++++++--- plutus-script-utils/plutus-script-utils.cabal | 20 +- plutus-streaming/plutus-streaming.cabal | 68 ++++- .../plutus-tx-constraints.cabal | 57 +++- plutus-use-cases/plutus-use-cases.cabal | 99 +++++-- web-ghc/web-ghc.cabal | 23 +- 18 files changed, 924 insertions(+), 338 deletions(-) diff --git a/doc/plutus-doc.cabal b/doc/plutus-doc.cabal index 5d3a13206d..acc50fa5d9 100644 --- a/doc/plutus-doc.cabal +++ b/doc/plutus-doc.cabal @@ -39,7 +39,7 @@ common lang ScopedTypeVariables StandaloneDeriving - -- See Plutus Tx readme for why we need the following flags: + -- See Plutus Tx readme for why we need the following flags: -- -fobject-code -fno-ignore-interface-pragmas and -fno-omit-interface-pragmas ghc-options: -Wall -Wnoncanonical-monad-instances -Wincomplete-uni-patterns @@ -76,34 +76,47 @@ executable doc-doctests HelloWorldApp WriteScriptsTo + -------------------- + -- Local components + -------------------- build-depends: - , aeson - , base >=4.9 && <5 - , bytestring - , containers - , data-default - , flat , freer-extras - , lens , playground-common , plutus-chain-index-core , plutus-contract - , plutus-core , plutus-ledger - , plutus-ledger-api , plutus-ledger-constraints , plutus-script-utils - , plutus-tx , plutus-tx-constraints , plutus-use-cases - , QuickCheck + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + , plutus-core + , plutus-ledger-api + , plutus-tx , quickcheck-dynamic + + if !(impl(ghcjs) || os(ghcjs)) + build-depends: plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , base >=4.9 && <5 + , bytestring + , containers + , data-default + , flat + , lens + , QuickCheck , random , serialise , tasty , tasty-quickcheck - , template-haskell >=2.13.0.0 + , template-haskell >=2.13.0.0 , text - - if !(impl(ghcjs) || os(ghcjs)) - build-depends: plutus-tx-plugin diff --git a/freer-extras/freer-extras.cabal b/freer-extras/freer-extras.cabal index 666a2efe63..20015d870f 100644 --- a/freer-extras/freer-extras.cabal +++ b/freer-extras/freer-extras.cabal @@ -47,15 +47,22 @@ library Control.Monad.Freer.Extras.State Control.Monad.Freer.Extras.Stream + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: iohk-monitoring + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson - , base >=4.7 && <5 + , base >=4.7 && <5 , beam-core , beam-sqlite , containers , data-default , freer-simple - , iohk-monitoring , lens , mtl , openapi3 @@ -74,21 +81,26 @@ test-suite freer-extras-test Control.Monad.Freer.Extras.BeamSpec Control.Monad.Freer.Extras.PaginationSpec - build-depends: - , hedgehog - , tasty - , tasty-hedgehog + ---------------------------- + -- Local components + ---------------------------- + build-depends: freer-extras + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: - , base >=4.7 && <5 + , base >=4.7 && <5 , beam-core , beam-migrate , beam-sqlite , containers , contra-tracer - , freer-extras , freer-simple + , hedgehog , lens , resource-pool , semigroups , sqlite-simple + , tasty + , tasty-hedgehog diff --git a/playground-common/playground-common.cabal b/playground-common/playground-common.cabal index 0a2a60c072..8c1d2d5f6f 100644 --- a/playground-common/playground-common.cabal +++ b/playground-common/playground-common.cabal @@ -41,10 +41,31 @@ library -Wincomplete-record-updates -Wmissing-import-lists -Wredundant-constraints + -------------------- + -- Local components + -------------------- + build-depends: + freer-extras + , plutus-chain-index-core + , plutus-contract + , plutus-ledger + , plutus-ledger-constraints + , plutus-script-utils + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + plutus-ledger-api + , plutus-tx + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: aeson , aeson-casing - , base >=4.7 && <5 + , base >=4.7 && <5 , bytestring , containers , cookie @@ -53,7 +74,6 @@ library , deriving-compat , exceptions , foldl - , freer-extras , freer-simple , hashable , http-client @@ -66,20 +86,13 @@ library , mtl , newtype-generics , openapi3 - , plutus-chain-index-core - , plutus-contract - , plutus-ledger - , plutus-ledger-api - , plutus-ledger-constraints - , plutus-script-utils - , plutus-tx , prettyprinter , process - , prometheus >=2 + , prometheus >=2 , purescript-bridge - , recursion-schemes <5.2 + , recursion-schemes <5.2 , row-types - , servant >=0.16 + , servant >=0.16 , servant-client , servant-purescript , servant-server @@ -115,14 +128,22 @@ test-suite playground-common-test -Wmissing-import-lists -Wredundant-constraints -fprint-potential-instances -Wunused-packages + -------------------- + -- Local components + -------------------- + build-depends: + playground-common + , plutus-contract + , plutus-ledger + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: aeson , base >=4.7 && <5 , bytestring , freer-simple - , playground-common - , plutus-contract - , plutus-ledger , recursion-schemes <5.2 , tasty , tasty-hunit diff --git a/plutus-chain-index-core/plutus-chain-index-core.cabal b/plutus-chain-index-core/plutus-chain-index-core.cabal index a3c48cd4f8..66dfb34069 100644 --- a/plutus-chain-index-core/plutus-chain-index-core.cabal +++ b/plutus-chain-index-core/plutus-chain-index-core.cabal @@ -67,22 +67,43 @@ library Plutus.Monitoring.Util hs-source-dirs: src + + -------------------- + -- Local components + -------------------- build-depends: , freer-extras , plutus-ledger - , plutus-ledger-api , plutus-script-utils + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + , cardano-api + , cardano-ledger-byron + , io-classes + , iohk-monitoring + , ouroboros-consensus + , ouroboros-consensus-byron + , ouroboros-consensus-cardano + , ouroboros-consensus-shelley + , ouroboros-network + , ouroboros-network-framework + , plutus-ledger-api , plutus-tx + , typed-protocols + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson - , base >=4.7 && <5 + , base >=4.7 && <5 , beam-core , beam-migrate , beam-sqlite , bytestring - , cardano-api - , cardano-ledger-byron , containers , contra-tracer , cryptonite @@ -91,20 +112,12 @@ library , fingertree , freer-simple , http-types - , io-classes - , iohk-monitoring , lens , memory , mtl , nothunks , openapi3 - , ouroboros-consensus - , ouroboros-consensus-byron - , ouroboros-consensus-cardano - , ouroboros-consensus-shelley - , ouroboros-network - , ouroboros-network-framework - , prettyprinter >=1.1.0.1 + , prettyprinter >=1.1.0.1 , resource-pool , retry , semigroups @@ -119,7 +132,6 @@ library , stm , text , text-class - , typed-protocols , unordered-containers , warp @@ -135,12 +147,24 @@ test-suite plutus-chain-index-test Plutus.ChainIndex.HandlersSpec Util + -------------------- + -- Local components + -------------------- build-depends: + , freer-extras , plutus-chain-index-core , plutus-ledger + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: , plutus-ledger-api , plutus-tx + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , base >=4.9 && <5 , beam-migrate @@ -150,7 +174,6 @@ test-suite plutus-chain-index-test , contra-tracer , data-default , fingertree - , freer-extras , freer-simple , hedgehog , lens diff --git a/plutus-chain-index/plutus-chain-index.cabal b/plutus-chain-index/plutus-chain-index.cabal index 69e4563813..87d1ec5121 100644 --- a/plutus-chain-index/plutus-chain-index.cabal +++ b/plutus-chain-index/plutus-chain-index.cabal @@ -51,27 +51,39 @@ library other-modules: Control.Concurrent.STM.TBMQueue hs-source-dirs: src + + -------------------- + -- Local components + -------------------- build-depends: , freer-extras , plutus-chain-index-core , plutus-ledger + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + , cardano-api + , iohk-monitoring + , ouroboros-network , plutus-ledger-api + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson , async , base >=4.7 && <5 , beam-migrate , beam-sqlite - , cardano-api , clock , contra-tracer , data-default , freer-simple - , iohk-monitoring , lens , optparse-applicative - , ouroboros-network , prettyprinter >=1.1.0.1 , resource-pool , sqlite-simple @@ -110,18 +122,31 @@ executable marconi -Wno-missing-import-lists -Wredundant-constraints -O0 -Wunused-packages + -------------------- + -- Local components + -------------------- + build-depends: + , hysterical-screams + , plutus-ledger + , plutus-script-utils + , plutus-streaming + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + , cardano-api + , iohk-monitoring + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , base >=4.9 && <5 , bytestring - , cardano-api , containers - , hysterical-screams - , iohk-monitoring , lens , optparse-applicative - , plutus-ledger - , plutus-script-utils - , plutus-streaming , prettyprinter , serialise , sqlite-simple diff --git a/plutus-contract-certification/plutus-contract-certification.cabal b/plutus-contract-certification/plutus-contract-certification.cabal index ac5949f52d..1900706d05 100644 --- a/plutus-contract-certification/plutus-contract-certification.cabal +++ b/plutus-contract-certification/plutus-contract-certification.cabal @@ -33,7 +33,7 @@ common lang ScopedTypeVariables StandaloneDeriving - -- See Plutus Tx readme for why we need the following flags: + -- See Plutus Tx readme for why we need the following flags: -- -fobject-code -fno-ignore-interface-pragmas and -fno-omit-interface-pragmas ghc-options: -Wall -Wnoncanonical-monad-instances -Wunused-packages @@ -48,15 +48,27 @@ library Plutus.Contract.Test.Certification.Run hs-source-dirs: src + + -------------------- + -- Local components + -------------------- + build-depends: plutus-contract + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: plutus-tx + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson - , base >=4.7 && <5 + , base >=4.7 && <5 , bytestring , containers , lens , mtl - , plutus-contract - , plutus-tx , QuickCheck , splitmix , stm diff --git a/plutus-contract/plutus-contract.cabal b/plutus-contract/plutus-contract.cabal index 9a6948430f..746cc43ad7 100644 --- a/plutus-contract/plutus-contract.cabal +++ b/plutus-contract/plutus-contract.cabal @@ -116,27 +116,41 @@ library Wallet.Types hs-source-dirs: src + + -------------------- + -- Local components + -------------------- build-depends: , freer-extras , plutus-chain-index-core - , plutus-core , plutus-ledger - , plutus-ledger-api , plutus-ledger-constraints , plutus-script-utils - , plutus-tx + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: , cardano-api , cardano-crypto , cardano-ledger-core + , cardano-wallet-core + , plutus-core + , plutus-ledger-api + , plutus-tx + , quickcheck-dynamic + + if !(impl(ghcjs) || os(ghcjs)) + build-depends: plutus-tx-plugin + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson >=1.5.2 , aeson-pretty , base >=4.7 && <5 , bytestring - , cardano-wallet-core , containers , cryptonite >=0.25 , data-default @@ -159,7 +173,6 @@ library , prettyprinter >=1.1.0.1 , profunctors , QuickCheck - , quickcheck-dynamic , row-types >=1.0.1.0 , semigroupoids , serialise @@ -174,9 +187,6 @@ library , unordered-containers , uuid - if !(impl(ghcjs) || os(ghcjs)) - build-depends: plutus-tx-plugin - if flag(defer-plugin-errors) ghc-options: -fplugin-opt PlutusTx.Plugin:defer-errors @@ -198,6 +208,9 @@ library Plutus.Contract.Test.Coverage.ReportCoverage Plutus.Contract.Test.MissingLovelace + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , tasty , tasty-golden @@ -233,29 +246,45 @@ test-suite plutus-contract-test Spec.ThreadToken Spec.TimeValidity + -------------------- + -- Local components + -------------------- + build-depends: + , freer-extras + , plutus-chain-index-core + , plutus-contract + , plutus-ledger + , plutus-ledger-constraints + , plutus-script-utils + , plutus-tx-constraints + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + , cardano-api:{cardano-api, gen} + , plutus-core + , plutus-ledger-api + , plutus-tx + + if !(impl(ghcjs) || os(ghcjs)) + build-depends: plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson - , base >=4.9 && <5 + , base >=4.9 && <5 , bytestring - , cardano-api:{cardano-api, gen} , containers , data-default , deepseq , extensible-effects - , freer-extras , freer-simple , hedgehog , lens , mtl - , plutus-chain-index-core - , plutus-contract - , plutus-core - , plutus-ledger - , plutus-ledger-api - , plutus-ledger-constraints - , plutus-script-utils - , plutus-tx - , plutus-tx-constraints , pretty , prettyprinter , QuickCheck @@ -272,6 +301,3 @@ test-suite plutus-contract-test , text , transformers , utf8-string - - if !(impl(ghcjs) || os(ghcjs)) - build-depends: plutus-tx-plugin diff --git a/plutus-example/plutus-example.cabal b/plutus-example/plutus-example.cabal index a0132fcb28..4eb93c272d 100644 --- a/plutus-example/plutus-example.cabal +++ b/plutus-example/plutus-example.cabal @@ -62,21 +62,33 @@ library PlutusExample.ScriptContextChecker PlutusExample.Sum + -------------------- + -- Local components + -------------------- + build-depends: plutus-script-utils + + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: - , aeson - , bytestring , cardano-api , cardano-cli , cardano-ledger-alonzo , cardano-ledger-core , cardano-slotting - , containers , ouroboros-consensus , ouroboros-network , plutus-ledger-api - , plutus-script-utils , plutus-tx , plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , bytestring + , containers , serialise , strict-containers , transformers @@ -87,22 +99,46 @@ executable plutus-example hs-source-dirs: app main-is: plutus-example.hs ghc-options: -threaded -rtsopts -with-rtsopts=-T + + -------------------- + -- Local components + -------------------- + build-depends: plutus-example + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: cardano-api + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: - , cardano-api , directory , filepath - , plutus-example executable create-script-context import: common-definitions hs-source-dirs: app main-is: create-script-context.hs ghc-options: -threaded -rtsopts -with-rtsopts=-T + + -------------------- + -- Local components + -------------------- build-depends: - , bytestring , cardano-api - , optparse-applicative , plutus-example + + -------------------------- + -- Other IOG dependencies + -------------------------- + -------------------------- + -- Non-IOG dependencies + -------------------------- + build-depends: + , bytestring + , optparse-applicative , transformers test-suite plutus-example-test @@ -110,10 +146,16 @@ test-suite plutus-example-test hs-source-dirs: test main-is: plutus-example-test.hs type: exitcode-stdio-1.0 + + -------------------- + -- Local components + -------------------- + build-depends: plutus-example + + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: - , aeson - , base16-bytestring - , bytestring , cardano-api:{cardano-api, gen} , cardano-cli , cardano-ledger-alonzo @@ -121,13 +163,20 @@ test-suite plutus-example-test , cardano-ledger-shelley , cardano-prelude , cardano-testnet + , hedgehog-extras + , plutus-ledger-api + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , base16-bytestring + , bytestring , containers , directory , filepath , hedgehog - , hedgehog-extras - , plutus-example - , plutus-ledger-api , tasty , tasty-hedgehog , text diff --git a/plutus-ledger-constraints/plutus-ledger-constraints.cabal b/plutus-ledger-constraints/plutus-ledger-constraints.cabal index a9216842e7..514acf12e6 100644 --- a/plutus-ledger-constraints/plutus-ledger-constraints.cabal +++ b/plutus-ledger-constraints/plutus-ledger-constraints.cabal @@ -34,7 +34,7 @@ common lang ScopedTypeVariables StandaloneDeriving - -- See Plutus Tx readme for why we need the following flags: + -- See Plutus Tx readme for why we need the following flags: -- -fobject-code -fno-ignore-interface-pragmas and -fno-omit-interface-pragmas ghc-options: -Wall -Wnoncanonical-monad-instances -Wunused-packages @@ -53,18 +53,31 @@ library Ledger.Constraints.OnChain Ledger.Constraints.TxConstraints + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-ledger + , plutus-script-utils + + --------------------------- + -- Other IOG dependencies + --------------------------- + build-depends: + , plutus-ledger-api + , plutus-tx + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson - , base >=4.9 && <5 + , base >=4.9 && <5 , containers , data-default , lens , mtl , openapi3 - , plutus-ledger - , plutus-ledger-api - , plutus-script-utils - , plutus-tx , prettyprinter , transformers @@ -74,20 +87,34 @@ test-suite plutus-ledger-constraints-test hs-source-dirs: test default-language: Haskell2010 default-extensions: ImportQualifiedPost + + -------------------- + -- Local components + -------------------- build-depends: - , base >=4.9 && <5 + , plutus-ledger + , plutus-ledger-constraints + , plutus-script-utils + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + , plutus-ledger-api + , plutus-tx + , plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , base >=4.9 && <5 , bytestring , containers , data-default , hedgehog , lens , mtl - , plutus-ledger - , plutus-ledger-api - , plutus-ledger-constraints - , plutus-script-utils - , plutus-tx - , plutus-tx-plugin , tasty , tasty-hedgehog , template-haskell diff --git a/plutus-ledger/plutus-ledger.cabal b/plutus-ledger/plutus-ledger.cabal index 82c120285e..765dd9690c 100644 --- a/plutus-ledger/plutus-ledger.cabal +++ b/plutus-ledger/plutus-ledger.cabal @@ -96,11 +96,18 @@ library -- the Haskell modules and not in the current cabal file. -- For example: Plutus.V1.Ledger.Address is reexported by Ledger.Address other-modules: Ledger.Tx.CardanoAPITemp + + -------------------- + -- Local components + -------------------- + build-depends: + , freer-extras + , plutus-script-utils + + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: - , aeson - , array - , base >=4.9 && <5 - , bytestring , cardano-api:{cardano-api, gen} , cardano-crypto , cardano-crypto-class @@ -110,26 +117,33 @@ library , cardano-ledger-shelley , cardano-ledger-shelley-ma , cardano-slotting + , iohk-monitoring + , ouroboros-consensus + , ouroboros-consensus-shelley + , plutus-core + , plutus-ledger-api + , plutus-tx + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , array + , base >=4.9 && <5 + , bytestring , cborg , containers - , cryptonite >=0.25 + , cryptonite >=0.25 , data-default , deepseq - , freer-extras , hashable , hedgehog , http-api-data - , iohk-monitoring , lens , memory , mtl , openapi3 - , ouroboros-consensus - , ouroboros-consensus-shelley - , plutus-core - , plutus-ledger-api - , plutus-script-utils - , plutus-tx , prettyprinter , scientific , serialise @@ -157,18 +171,32 @@ test-suite plutus-ledger-test default-language: Haskell2010 default-extensions: ImportQualifiedPost other-modules: Ledger.Tx.CardanoAPISpec + + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-ledger + , plutus-script-utils + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + , cardano-api:{cardano-api, gen} + , plutus-ledger-api + , plutus-tx + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson - , base >=4.9 && <5 + , base >=4.9 && <5 , bytestring - , cardano-api:{cardano-api, gen} , containers , data-default , hedgehog - , plutus-ledger - , plutus-ledger-api - , plutus-script-utils - , plutus-tx , tasty , tasty-hedgehog , tasty-hunit diff --git a/plutus-pab-executables/plutus-pab-executables.cabal b/plutus-pab-executables/plutus-pab-executables.cabal index 93d672c2a0..5f9398c60e 100644 --- a/plutus-pab-executables/plutus-pab-executables.cabal +++ b/plutus-pab-executables/plutus-pab-executables.cabal @@ -61,10 +61,17 @@ library , plutus-contract , plutus-pab + -------------------- + -- Local components + -------------------- + build-depends: playground-common + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , base >=4.7 && <5 , lens - , playground-common , purescript-bridge , servant-purescript , text @@ -81,14 +88,26 @@ executable plutus-pab-setup -Wno-missing-import-lists -Wredundant-constraints -O0 -Wunused-packages + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-contract + , plutus-pab + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: iohk-monitoring + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson , base >=4.9 && <5 - , iohk-monitoring , monad-logger , optparse-applicative - , plutus-contract - , plutus-pab -- TODO: This needs to be moved to plutus-use-cases once plutus-pab doesn't -- depend on plutus-use-cases anymore. @@ -110,22 +129,34 @@ executable plutus-pab-examples -Wno-missing-import-lists -Wredundant-constraints -O0 -Wunused-packages + -------------------- + -- Local components + -------------------- build-depends: - , aeson - , base >=4.9 && <5 - , containers - , data-default - , freer-simple - , lens - , openapi3 , playground-common , plutus-contract , plutus-ledger - , plutus-ledger-api , plutus-ledger-constraints , plutus-pab , plutus-pab-executables , plutus-use-cases + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: plutus-ledger-api + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , base >=4.9 && <5 + , containers + , data-default + , freer-simple + , lens + , openapi3 , prettyprinter , purescript-bridge , row-types @@ -145,17 +176,29 @@ executable plutus-uniswap -Wno-missing-import-lists -Wredundant-constraints -O0 -Wunused-packages + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-contract + , plutus-pab + , plutus-use-cases + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: plutus-ledger-api + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson - , base >=4.9 && <5 + , base >=4.9 && <5 , containers , data-default , freer-simple , openapi3 - , plutus-contract - , plutus-ledger-api - , plutus-pab - , plutus-use-cases , prettyprinter , text @@ -179,16 +222,26 @@ executable plutus-pab-local-cluster -Wno-missing-import-lists -Wredundant-constraints -O0 -Wunused-packages + -------------------- + -- Local components + -------------------- build-depends: , playground-common , plutus-contract , plutus-ledger - , plutus-ledger-api , plutus-ledger-constraints , plutus-pab , plutus-pab-executables , plutus-use-cases + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: plutus-ledger-api + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson , base >=4.9 && <5 @@ -216,25 +269,37 @@ executable plutus-pab-test-psgenerator Plutus.PAB.Simulator.Test -- TODO plutus-use-cases dep needs to be removed + -------------------- + -- Local components + -------------------- + build-depends: + , freer-extras + , playground-common + , plutus-contract + , plutus-ledger + , plutus-ledger-constraints + , plutus-pab + , plutus-use-cases + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: plutus-ledger-api + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson , aeson-pretty - , base >=4.9 && <5 + , base >=4.9 && <5 , bytestring , containers , data-default , filepath - , freer-extras , freer-simple , lens , mtl - , playground-common - , plutus-contract - , plutus-ledger - , plutus-ledger-api - , plutus-ledger-constraints - , plutus-pab - , plutus-use-cases , prettyprinter , purescript-bridge , row-types @@ -261,29 +326,42 @@ test-suite plutus-pab-test-full Plutus.PAB.Simulator.Test -- TODO plutus-use-cases dep needs to be removed + -------------------- + -- Local components + -------------------- build-depends: - , aeson - , async - , base >=4.9 && <5 - , containers - , data-default , freer-extras - , freer-simple - , http-client - , iohk-monitoring - , lens - , mtl - , openapi3 , playground-common , plutus-chain-index-core , plutus-contract , plutus-ledger - , plutus-ledger-api , plutus-ledger-constraints , plutus-pab , plutus-pab-executables - , plutus-tx , plutus-use-cases + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + , iohk-monitoring + , plutus-ledger-api + , plutus-tx + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , async + , base >=4.9 && <5 + , containers + , data-default + , freer-simple + , http-client + , lens + , mtl + , openapi3 , prettyprinter , purescript-bridge , quickcheck-instances @@ -316,28 +394,41 @@ test-suite plutus-pab-test-full-long-running Plutus.PAB.Simulator.Test -- TODO plutus-use-cases dep needs to be removed + -------------------- + -- Local components + -------------------- build-depends: - , aeson - , async - , base >=4.9 && <5 - , containers - , data-default , freer-extras - , freer-simple - , http-client - , iohk-monitoring - , lens - , mtl - , openapi3 , playground-common , plutus-chain-index-core , plutus-contract , plutus-ledger - , plutus-ledger-api , plutus-ledger-constraints , plutus-pab , plutus-pab-executables , plutus-use-cases + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + , iohk-monitoring + , plutus-ledger-api + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , async + , base >=4.9 && <5 + , containers + , data-default + , freer-simple + , http-client + , lens + , mtl + , openapi3 , prettyprinter , purescript-bridge , row-types @@ -355,6 +446,18 @@ executable tx-inject hs-source-dirs: tx-inject other-modules: TxInject.RandomTx default-language: Haskell2010 + + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-contract + , plutus-ledger + , plutus-pab + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , base >=4.9 && <5 , clock @@ -364,9 +467,6 @@ executable tx-inject , lens , mwc-random , optparse-applicative - , plutus-contract - , plutus-ledger - , plutus-pab , pretty-simple , primitive , rate-limit @@ -381,15 +481,29 @@ executable sync-client main-is: Main.hs hs-source-dirs: sync-client default-language: Haskell2010 + + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-chain-index-core + , plutus-ledger + + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: - , base >=4.9 && <5 , cardano-api , cardano-slotting + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , base >=4.9 && <5 , contra-tracer , either , optparse-applicative - , plutus-chain-index-core - , plutus-ledger , text executable plutus-pab-nami-demo @@ -398,16 +512,25 @@ executable plutus-pab-nami-demo hs-source-dirs: demo/pab-nami/pab/app other-modules: DemoContract ghc-options: -threaded + + -------------------- + -- Local components + -------------------- build-depends: - , aeson - , base >=4.9 && <5 - , openapi3 , playground-common , plutus-contract , plutus-ledger , plutus-ledger-constraints , plutus-pab , plutus-pab-executables + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , base >=4.9 && <5 + , openapi3 , prettyprinter , purescript-bridge @@ -417,17 +540,26 @@ executable plutus-pab-nami-demo-generator hs-source-dirs: demo/pab-nami/pab/app other-modules: DemoContract ghc-options: -threaded + + -------------------- + -- Local components + -------------------- build-depends: - , aeson - , base >=4.9 && <5 - , openapi3 - , optparse-applicative , playground-common , plutus-contract , plutus-ledger , plutus-ledger-constraints , plutus-pab , plutus-pab-executables + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , base >=4.9 && <5 + , openapi3 + , optparse-applicative , prettyprinter , purescript-bridge @@ -441,22 +573,31 @@ executable pab-cli Types ghc-options: -threaded -Wmissing-import-lists -Wunused-packages + + -------------------- + -- Local components + -------------------- build-depends: , plutus-chain-index-core , plutus-ledger , plutus-pab + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: , cardano-api , cardano-ledger-shelley , ouroboros-consensus-shelley + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson , async , base >=4.9 && <5 , bytestring - , cardano-api , data-default , directory , docopt diff --git a/plutus-pab/plutus-pab.cabal b/plutus-pab/plutus-pab.cabal index fcbd2d86a7..b4c056695c 100644 --- a/plutus-pab/plutus-pab.cabal +++ b/plutus-pab/plutus-pab.cabal @@ -120,6 +120,10 @@ library other-modules: Servant.Extra hs-source-dirs: src + + -------------------- + -- Local components + -------------------- build-depends: , freer-extras , playground-common @@ -127,21 +131,13 @@ library , plutus-chain-index-core , plutus-contract , plutus-ledger - , plutus-ledger-api , plutus-ledger-constraints , plutus-script-utils - , plutus-tx - , plutus-tx-plugin + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: - , aeson - , aeson-pretty - , async - , base >=4.7 && <5 - , beam-core - , beam-migrate - , beam-sqlite - , bytestring , cardano-addresses , cardano-api , cardano-ledger-core @@ -151,6 +147,27 @@ library , cardano-wallet-core , cardano-wallet-core-integration , cardano-wallet-launcher + , iohk-monitoring + , lobemo-backend-ekg + , ouroboros-network + , ouroboros-network-framework + , plutus-ledger-api + , plutus-tx + , plutus-tx-plugin + , Win32-network + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , aeson-pretty + , async + , base >=4.7 && <5 + , beam-core + , beam-migrate + , beam-sqlite + , bytestring , containers , contra-tracer , cryptonite @@ -163,18 +180,14 @@ library , generic-arbitrary , http-client , http-client-tls - , iohk-monitoring , lens - , lobemo-backend-ekg , memory , monad-logger , mtl , network-mux , openapi3 , optparse-applicative - , ouroboros-network - , ouroboros-network-framework - , prettyprinter >=1.1.0.1 + , prettyprinter >=1.1.0.1 , QuickCheck , quickcheck-instances , random @@ -201,7 +214,6 @@ library , wai-cors , warp , websockets - , Win32-network , yaml test-suite plutus-pab-test-light @@ -218,21 +230,34 @@ test-suite plutus-pab-test-light Control.Concurrent.STM.ExtrasSpec Plutus.PAB.ArbitrarySpec + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-contract + , plutus-ledger + , plutus-ledger-constraints + , plutus-pab + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + , cardano-api:{cardano-api, gen} + , plutus-tx + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson , async - , base >=4.9 && <5 + , base >=4.9 && <5 , bytestring - , cardano-api:{cardano-api, gen} , data-default , freer-simple , hedgehog , hedgehog-quickcheck - , plutus-contract - , plutus-ledger - , plutus-ledger-constraints - , plutus-pab - , plutus-tx , QuickCheck , quickcheck-instances , smallcheck diff --git a/plutus-playground-server/plutus-playground-server.cabal b/plutus-playground-server/plutus-playground-server.cabal index 40e89554b3..d21cdf7964 100644 --- a/plutus-playground-server/plutus-playground-server.cabal +++ b/plutus-playground-server/plutus-playground-server.cabal @@ -56,7 +56,7 @@ library default-language: Haskell2010 default-extensions: ImportQualifiedPost - -- See Plutus Tx readme for why we need the following flags: + -- See Plutus Tx readme for why we need the following flags: -- -fobject-code -fno-ignore-interface-pragmas and -fno-omit-interface-pragmas ghc-options: -Wall -Wcompat -Wunused-packages -Wincomplete-uni-patterns @@ -64,9 +64,32 @@ library -Wredundant-constraints -fobject-code -fno-ignore-interface-pragmas -fno-omit-interface-pragmas + -------------------- + -- Local components + -------------------- + build-depends: + playground-common + , plutus-contract + , plutus-ledger + , plutus-ledger-constraints + , plutus-script-utils + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + plutus-ledger-api + , plutus-tx + + if !(impl(ghcjs) || os(ghcjs)) + build-depends: plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: aeson - , base >=4.7 && <5 + , base >=4.7 && <5 , bytestring , containers , data-default @@ -79,16 +102,9 @@ library , monad-logger , mtl , newtype-generics - , playground-common - , plutus-contract - , plutus-ledger - , plutus-ledger-api - , plutus-ledger-constraints - , plutus-script-utils - , plutus-tx , regex-compat , row-types - , servant >=0.16 + , servant >=0.16 , servant-client , servant-client-core , servant-server @@ -99,9 +115,6 @@ library , wai-cors , web-ghc - if !(impl(ghcjs) || os(ghcjs)) - build-depends: plutus-tx-plugin - library plutus-playground-usecases hs-source-dirs: usecases other-modules: @@ -122,7 +135,7 @@ library plutus-playground-usecases default-language: Haskell2010 default-extensions: ImportQualifiedPost - -- See Plutus Tx readme for why we need the following flags: + -- See Plutus Tx readme for why we need the following flags: -- -fobject-code -fno-ignore-interface-pragmas and -fno-omit-interface-pragmas ghc-options: -Wall -Wcompat -Wunused-packages -Wincomplete-uni-patterns @@ -130,24 +143,22 @@ library plutus-playground-usecases -Wno-missing-signatures -Wno-missing-import-lists -fobject-code -fno-ignore-interface-pragmas -fno-omit-interface-pragmas + -------------------- + -- Local components + -------------------- build-depends: - aeson - , base >=4.7 && <5 - , bytestring - , containers - , data-default - , lens - , mtl - , playground-common + playground-common , plutus-contract , plutus-ledger - , plutus-ledger-api , plutus-ledger-constraints , plutus-script-utils + + -------------------- + -- IOG dependencies + -------------------- + build-depends: + plutus-ledger-api , plutus-tx - , row-types - , text - , transformers if !(impl(ghcjs) || os(ghcjs)) build-depends: plutus-tx-plugin @@ -155,6 +166,21 @@ library plutus-playground-usecases if flag(defer-plugin-errors) ghc-options: -fplugin-opt PlutusTx.Plugin:defer-errors + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + aeson + , base >=4.7 && <5 + , bytestring + , containers + , data-default + , lens + , mtl + , row-types + , text + , transformers + executable plutus-playground-server main-is: Main.hs hs-source-dirs: app usecases @@ -179,7 +205,7 @@ executable plutus-playground-server default-language: Haskell2010 default-extensions: ImportQualifiedPost - -- See Plutus Tx readme for why we need the following flags: + -- See Plutus Tx readme for why we need the following flags: -- -fobject-code -fno-ignore-interface-pragmas and -fno-omit-interface-pragmas ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wcompat @@ -187,30 +213,46 @@ executable plutus-playground-server -Wno-missing-import-lists -Wredundant-constraints -O0 -fobject-code -fno-ignore-interface-pragmas -fno-omit-interface-pragmas + -------------------- + -- Local components + -------------------- + build-depends: + freer-extras + , playground-common + , plutus-contract + , plutus-ledger + , plutus-ledger-constraints + , plutus-playground-server + , plutus-playground-usecases + , plutus-script-utils + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + plutus-ledger-api + , plutus-tx + + if !(impl(ghcjs) || os(ghcjs)) + build-depends: plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: aeson , aeson-pretty - , base >=4.7 && <5 + , base >=4.7 && <5 , bytestring , containers , data-default , data-default-class , exceptions , filepath - , freer-extras , lens , monad-logger , mtl , optparse-applicative - , playground-common - , plutus-contract - , plutus-ledger - , plutus-ledger-api - , plutus-ledger-constraints - , plutus-playground-server - , plutus-playground-usecases - , plutus-script-utils - , plutus-tx , purescript-bridge , row-types , servant @@ -222,9 +264,6 @@ executable plutus-playground-server , warp , web-ghc - if !(impl(ghcjs) || os(ghcjs)) - build-depends: plutus-tx-plugin - test-suite plutus-playground-server-test type: exitcode-stdio-1.0 main-is: Spec.hs @@ -246,17 +285,25 @@ test-suite plutus-playground-server-test -Wincomplete-record-updates -Wno-missing-import-lists -Wredundant-constraints -fprint-potential-instances + -------------------- + -- Local components + -------------------- build-depends: - aeson - , base >=4.7 && <5 - , bytestring - , mtl - , newtype-generics - , playground-common + playground-common , plutus-contract , plutus-ledger , plutus-playground-server , plutus-playground-usecases + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + aeson + , base >=4.7 && <5 + , bytestring + , mtl + , newtype-generics , tasty , tasty-hunit , text diff --git a/plutus-script-utils/plutus-script-utils.cabal b/plutus-script-utils/plutus-script-utils.cabal index 401b6deca9..012ba62baa 100644 --- a/plutus-script-utils/plutus-script-utils.cabal +++ b/plutus-script-utils/plutus-script-utils.cabal @@ -65,17 +65,25 @@ library Plutus.Script.Utils.V1.Typed.Scripts.Validators Plutus.Script.Utils.V1.Typed.TypeUtils + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: - , aeson - , base >=4.9 && <5 - , bytestring , cardano-api >=1.34 , cardano-ledger-alonzo - , mtl , plutus-core , plutus-ledger-api , plutus-tx , plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , base >=4.9 && <5 + , bytestring + , mtl , prettyprinter , serialise @@ -91,6 +99,10 @@ test-suite plutus-ledger-test hs-source-dirs: test default-language: Haskell2010 default-extensions: ImportQualifiedPost + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , base >=4.9 && <5 , tasty diff --git a/plutus-streaming/plutus-streaming.cabal b/plutus-streaming/plutus-streaming.cabal index 9f91a2d47b..76b004ace6 100644 --- a/plutus-streaming/plutus-streaming.cabal +++ b/plutus-streaming/plutus-streaming.cabal @@ -30,11 +30,20 @@ library import: lang hs-source-dirs: src exposed-modules: Plutus.Streaming + + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: - , async - , base >=4.9 && <5 , cardano-api , ouroboros-network + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , async + , base >=4.9 && <5 , stm , streaming @@ -46,14 +55,25 @@ executable plutus-streaming-example-1 Common Orphans + -------------------- + -- Local components + -------------------- + build-depends: plutus-streaming + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: cardano-api + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson , base >=4.9 && <5 , base16-bytestring , bytestring - , cardano-api , optparse-applicative - , plutus-streaming , streaming , text @@ -65,16 +85,28 @@ executable plutus-streaming-example-2 Common Orphans + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-ledger + , plutus-script-utils + , plutus-streaming + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: cardano-api + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson , base >=4.9 && <5 , base16-bytestring , bytestring - , cardano-api , optparse-applicative - , plutus-ledger - , plutus-script-utils - , plutus-streaming , streaming executable plutus-streaming-example-3 @@ -85,13 +117,25 @@ executable plutus-streaming-example-3 Common Orphans + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-chain-index-core + , plutus-streaming + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: cardano-api + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: , aeson - , base >=4.9 && <5 + , base >=4.9 && <5 , base16-bytestring , bytestring - , cardano-api , optparse-applicative - , plutus-chain-index-core - , plutus-streaming , streaming diff --git a/plutus-tx-constraints/plutus-tx-constraints.cabal b/plutus-tx-constraints/plutus-tx-constraints.cabal index 8d77de85cd..b314456e5e 100644 --- a/plutus-tx-constraints/plutus-tx-constraints.cabal +++ b/plutus-tx-constraints/plutus-tx-constraints.cabal @@ -34,7 +34,7 @@ common lang ScopedTypeVariables StandaloneDeriving - -- See Plutus Tx readme for why we need the following flags: + -- See Plutus Tx readme for why we need the following flags: -- -fobject-code -fno-ignore-interface-pragmas and -fno-omit-interface-pragmas ghc-options: -Wall -Wnoncanonical-monad-instances -Wunused-packages @@ -51,18 +51,31 @@ library Ledger.Tx.Constraints Ledger.Tx.Constraints.OffChain + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-ledger + , plutus-ledger-constraints + + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: - , aeson - , base >=4.9 && <5 , cardano-api + , plutus-ledger-api + , plutus-tx + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , aeson + , base >=4.9 && <5 , containers , lens , mtl , openapi3 - , plutus-ledger - , plutus-ledger-api - , plutus-ledger-constraints - , plutus-tx , prettyprinter , transformers @@ -72,21 +85,35 @@ test-suite plutus-tx-constraints-test hs-source-dirs: test default-language: Haskell2010 default-extensions: ImportQualifiedPost + + -------------------- + -- Local components + -------------------- + build-depends: + , plutus-ledger + , plutus-script-utils + , plutus-tx-constraints + + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: - , base >=4.9 && <5 - , bytestring , cardano-api + , plutus-ledger-api + , plutus-tx + , plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + , base >=4.9 && <5 + , bytestring , containers , data-default , hedgehog , lens , mtl - , plutus-ledger - , plutus-ledger-api - , plutus-script-utils - , plutus-tx - , plutus-tx-constraints - , plutus-tx-plugin , tasty , tasty-hedgehog , template-haskell diff --git a/plutus-use-cases/plutus-use-cases.cabal b/plutus-use-cases/plutus-use-cases.cabal index 1a96ae69f8..eb69cc8702 100644 --- a/plutus-use-cases/plutus-use-cases.cabal +++ b/plutus-use-cases/plutus-use-cases.cabal @@ -87,25 +87,38 @@ library -Wredundant-constraints -Widentities -fobject-code -fno-ignore-interface-pragmas -fno-omit-interface-pragmas + -------------------- + -- Local components + -------------------- build-depends: - aeson - , base - , bytestring - , containers - , freer-simple - , hashable - , lens - , openapi3 - , playground-common + playground-common , plutus-chain-index-core , plutus-contract , plutus-core , plutus-ledger - , plutus-ledger-api , plutus-ledger-constraints , plutus-script-utils + + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + plutus-ledger-api , plutus-tx , plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + aeson + , base + , bytestring + , containers + , freer-simple + , hashable + , lens + , openapi3 , prettyprinter , semigroups , streaming @@ -162,24 +175,38 @@ test-suite plutus-use-cases-test -rtsopts -fobject-code -fno-ignore-interface-pragmas -fno-omit-interface-pragmas + -------------------- + -- Local components + -------------------- build-depends: - playground-common + freer-extras + , playground-common , plutus-contract , plutus-contract-certification , plutus-ledger - , plutus-ledger-api , plutus-ledger-constraints , plutus-script-utils - , plutus-tx , plutus-use-cases + -------------------------- + -- Other IOG dependencies + -------------------------- + build-depends: + plutus-ledger-api + , plutus-tx + + if !(impl(ghcjs) || os(ghcjs)) + build-depends: plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: base >=4.9 && <5 , bytestring , containers , data-default , foldl - , freer-extras , freer-simple , lens , mtl @@ -193,9 +220,6 @@ test-suite plutus-use-cases-test , tasty-quickcheck , text - if !(impl(ghcjs) || os(ghcjs)) - build-depends: plutus-tx-plugin - -- runs emulator traces from plutus-use-cases-tests and -- writes all applied validator scripts to a folder executable plutus-use-cases-scripts @@ -233,26 +257,42 @@ executable plutus-use-cases-scripts -rtsopts -fobject-code -fno-ignore-interface-pragmas -fno-omit-interface-pragmas + -------------------- + -- Local components + -------------------- + build-depends: + freer-extras + , plutus-contract + , plutus-contract-certification + , plutus-ledger + , plutus-ledger-constraints + , plutus-script-utils + , plutus-use-cases + + -------------------------- + -- Other IOG dependencies + -------------------------- build-depends: - base >=4.9 && <5 + cardano-api + , plutus-ledger-api + , plutus-tx + + if !(impl(ghcjs) || os(ghcjs)) + build-depends: plutus-tx-plugin + + ------------------------ + -- Non-IOG dependencies + ------------------------ + build-depends: + base >=4.9 && <5 , bytestring - , cardano-api , containers , data-default , foldl - , freer-extras , freer-simple , lens , mtl , optparse-applicative - , plutus-contract - , plutus-contract-certification - , plutus-ledger - , plutus-ledger-api - , plutus-ledger-constraints - , plutus-script-utils - , plutus-tx - , plutus-use-cases , prettyprinter , QuickCheck , streaming @@ -261,6 +301,3 @@ executable plutus-use-cases-scripts , tasty-hunit , tasty-quickcheck , text - - if !(impl(ghcjs) || os(ghcjs)) - build-depends: plutus-tx-plugin diff --git a/web-ghc/web-ghc.cabal b/web-ghc/web-ghc.cabal index efbe9d7713..0047f2e821 100644 --- a/web-ghc/web-ghc.cabal +++ b/web-ghc/web-ghc.cabal @@ -41,14 +41,21 @@ library -Wincomplete-record-updates -Wno-missing-import-lists -Wredundant-constraints + -------------------- + -- Local components + -------------------- + build-depends: playground-common + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: aeson - , base >=4.7 && <5 + , base >=4.7 && <5 , exceptions , filepath , mtl , newtype-generics - , playground-common , servant-client , servant-server , temporary @@ -67,12 +74,19 @@ executable web-ghc-server -Wno-missing-import-lists -Wredundant-constraints -O0 -Wunused-packages + -------------------- + -- Local components + -------------------- + build-depends: playground-common + + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: base >=4.7 && <5 , data-default-class , monad-logger , optparse-applicative - , playground-common , prometheus , servant-server , text @@ -95,6 +109,9 @@ test-suite web-ghc-test -Wno-missing-import-lists -Wredundant-constraints -fprint-potential-instances -Wunused-packages + ------------------------ + -- Non-IOG dependencies + ------------------------ build-depends: base >=4.7 && <5 , tasty