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 HeadTokensError Source #
Instances
Show HeadTokensError Source # | |
Defined in Hydra.Contract.HeadTokensError | |
ToErrorCode HeadTokensError Source # | |
Defined in Hydra.Contract.HeadTokensError toErrorCode :: HeadTokensError -> Text Source # |