Skip to content

Commit

Permalink
Fix cabal formating
Browse files Browse the repository at this point in the history
  • Loading branch information
uhbif19 committed Mar 14, 2024
1 parent aa81368 commit 70e230c
Showing 1 changed file with 46 additions and 50 deletions.
96 changes: 46 additions & 50 deletions cem-script.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -63,6 +64,7 @@ common common-lang
MultiParamTypeClasses
NamedFieldPuns
NoImplicitPrelude
NoPolyKinds
NumericUnderscores
OverloadedStrings
PatternSynonyms
Expand All @@ -79,7 +81,6 @@ common common-lang
TypeOperators
TypeSynonymInstances
UndecidableInstances
NoPolyKinds
ViewPatterns

if flag(dev)
Expand All @@ -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
Expand All @@ -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

0 comments on commit 70e230c

Please sign in to comment.