Effectful.Fail
Contents
Description
Provider of the MonadFail instance for Eff.
MonadFail
Eff
data Fail (a :: Type -> Type) b where Source #
Provide the ability to use the MonadFail instance for Eff.
Constructors
Defined in Effectful.Internal.Monad
runFail :: forall (es :: [(Type -> Type) -> Type -> Type]) a. HasCallStack => Eff (Fail ': es) a -> Eff es (Either String a) Source #
Run the Fail effect via Error.
Fail
Error
runFailIO :: forall (es :: [Effect]) a. (HasCallStack, IOE :> es) => Eff (Fail ': es) a -> Eff es a Source #
Run the Fail effect via the MonadFail instance for IO.
IO