| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.Contract.DepositError
Synopsis
- errorCode :: ToErrorCode e => e -> Q Exp
- data DepositError
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 #
Constructors
Instances
| Show DepositError Source # | |
Defined in Hydra.Contract.DepositError | |
| ToErrorCode DepositError Source # | |
Defined in Hydra.Contract.DepositError Methods toErrorCode :: DepositError -> Text Source # | |