forked from mlabs-haskell/cem-script
-
Notifications
You must be signed in to change notification settings - Fork 0
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
2 changed files
with
138 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- Custom repository for cardano haskell packages | ||
repository cardano-haskell-packages | ||
url: https://input-output-hk.github.io/cardano-haskell-packages | ||
secure: True | ||
root-keys: | ||
3e0cce471cf09815f930210f7827266fd09045445d65923e6d0238a6cd15126f | ||
443abb7fb497a134c343faf52f0b659bd7999bc06b7f63fa76dc99d631f9bea1 | ||
a86a1f6ce86c449c46666bda44268677abf29b5b2d2eb5ec7af903ec2f117a82 | ||
bcec67e8e99cabfa7764d75ad9b158d72bfacf70ca1d0ec8bc6b4406d1bf8413 | ||
c00aae8461a256275598500ea0e187588c35a5d5d7454fb57eac18d9edb86a56 | ||
d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee | ||
|
||
index-state: | ||
, hackage.haskell.org 2023-11-03T12:09:05Z | ||
, cardano-haskell-packages 2023-11-03T12:09:05Z | ||
|
||
tests: true | ||
|
||
packages: . |
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 |
---|---|---|
@@ -0,0 +1,119 @@ | ||
cabal-version: 3.8 | ||
name: cem-script | ||
version: 0.1.0 | ||
synopsis: Cardano DApp SDK | ||
homepage: https://github.com/cem-script | ||
author: MLabs | ||
maintainer: [email protected] | ||
data-files: README.md | ||
|
||
flag dev | ||
description: | ||
Defer errors from the PlutusTx plugin, which break HLS and Haddock. Also disable Werror. | ||
|
||
default: True | ||
manual: False | ||
|
||
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 | ||
|
||
if !flag(dev) | ||
ghc-options: -Werror | ||
|
||
build-depends: | ||
, base | ||
, mtl | ||
, transformers | ||
|
||
default-extensions: | ||
BangPatterns | ||
BinaryLiterals | ||
ConstraintKinds | ||
DataKinds | ||
DeriveAnyClass | ||
DeriveFunctor | ||
DeriveGeneric | ||
DeriveTraversable | ||
DerivingStrategies | ||
DerivingVia | ||
DuplicateRecordFields | ||
EmptyCase | ||
FlexibleContexts | ||
FlexibleInstances | ||
FunctionalDependencies | ||
GADTs | ||
GeneralizedNewtypeDeriving | ||
HexFloatLiterals | ||
ImportQualifiedPost | ||
InstanceSigs | ||
KindSignatures | ||
LambdaCase | ||
MultiParamTypeClasses | ||
NamedFieldPuns | ||
NoImplicitPrelude | ||
NumericUnderscores | ||
OverloadedStrings | ||
PatternSynonyms | ||
QuantifiedConstraints | ||
RankNTypes | ||
ScopedTypeVariables | ||
StandaloneDeriving | ||
StrictData | ||
TemplateHaskell | ||
TupleSections | ||
TypeApplications | ||
TypeFamilies | ||
TypeFamilyDependencies | ||
TypeOperators | ||
TypeSynonymInstances | ||
UndecidableInstances | ||
|
||
if flag(dev) | ||
default-extensions: PartialTypeSignatures | ||
|
||
default-language: Haskell2010 | ||
|
||
common common-onchain | ||
import: common-lang | ||
build-depends: | ||
, plutus-ledger-api | ||
, plutus-tx | ||
, plutus-tx-plugin | ||
|
||
if flag(dev) | ||
ghc-options: -fplugin-opt PlutusTx.Plugin:defer-errors | ||
|
||
-- Options for Plutus Tx compilations | ||
-- (some are enabled additionaly in individual modules) | ||
|
||
ghc-options: | ||
-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 | ||
|
||
common common-offchain | ||
import: common-lang | ||
build-depends: | ||
, bytestring | ||
, cardano-api | ||
, cardano-ledger-core | ||
, containers | ||
, filepath | ||
, text | ||
, time | ||
, unix | ||
|
||
common common-executable | ||
import: common-offchain | ||
ghc-options: -threaded -rtsopts | ||
|
||
library cem-sdk | ||
import: common-onchain | ||
hs-source-dirs: src/ |