Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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 #
Instances
Show CommitError Source # | |
Defined in Hydra.Contract.CommitError | |
ToErrorCode CommitError Source # | |
Defined in Hydra.Contract.CommitError toErrorCode :: CommitError -> Text Source # |