Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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 DepositError Source #
DepositDeadlineSurpassed | |
DepositNoUpperBoundDefined | |
DepositNoLowerBoundDefined | |
DepositDeadlineNotReached | |
IncorrectDepositHash | |
DTNotMinted |
Instances
Show DepositError Source # | |
Defined in Hydra.Contract.DepositError | |
ToErrorCode DepositError Source # | |
Defined in Hydra.Contract.DepositError toErrorCode :: DepositError -> Text Source # |