Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Hydra.Contract.CommitError
Synopsis
- errorCode :: ToErrorCode e => e -> Q Exp
- data CommitError
Documentation
errorCode :: ToErrorCode e => e -> Q Exp Source #
Get the string literal from given error e
. Use this with template haskell
splices, e.g. $(errorCode MyError)
data CommitError Source #
Constructors
STNotBurnedError | |
STIsMissingInTheOutput |
Instances
Show CommitError Source # | |
Defined in Hydra.Contract.CommitError | |
ToErrorCode CommitError Source # | |
Defined in Hydra.Contract.CommitError Methods toErrorCode :: CommitError -> Text Source # |