Safe Haskell | None |
---|---|
Language | Haskell2010 |
Error related statements of Indigo language.
Documentation
failWith :: IsExpr ex a => ex -> IndigoState s t r Source #
failUsing_ :: IsError x => x -> 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 #
failUnexpected_ :: MText -> IndigoState s t r 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 #