indigo-0.1.0.0: Convenient imperative eDSL over Lorentz.
Safe HaskellNone
LanguageHaskell2010

Indigo.Backend.Error

Description

Error related statements of Indigo language.

Documentation

failWith :: IsExpr ex a => ex -> IndigoState s t r Source #

failCustom :: forall tag err ex s t r. (err ~ ErrorArg tag, CustomErrorHasDoc tag, NiceConstant err, IsExpr ex err) => Label tag -> ex -> IndigoState s t r Source #

failCustom_ :: forall tag s t r notVoidErrorMsg. (RequireNoArgError tag notVoidErrorMsg, CustomErrorHasDoc tag) => Label tag -> IndigoState s t r Source #

assert :: forall s x ex. (IsError x, IsExpr ex Bool) => x -> ex -> IndigoState s s () Source #

assertSome :: forall x s err ex. (IsError err, KnownValue x, ex :~> Maybe x) => err -> ex -> IndigoState s s () Source #

assertNone :: forall x s err ex. (IsError err, KnownValue x, ex :~> Maybe x) => err -> ex -> IndigoState s s () Source #

assertRight :: forall x y s err ex. (IsError err, KnownValue x, KnownValue y, ex :~> Either y x) => err -> ex -> IndigoState s s () Source #

assertLeft :: forall x y s err ex. (IsError err, KnownValue x, KnownValue y, ex :~> Either y x) => err -> ex -> IndigoState s s () Source #

assertCustom :: forall tag err errEx ex s. (err ~ ErrorArg tag, CustomErrorHasDoc tag, NiceConstant err, IsExpr errEx err, IsExpr ex Bool) => Label tag -> errEx -> ex -> IndigoState s s () Source #

assertCustom_ :: forall tag s notVoidErrorMsg ex. (RequireNoArgError tag notVoidErrorMsg, CustomErrorHasDoc tag, IsExpr ex Bool) => Label tag -> ex -> IndigoState s s () Source #