Cleff.Fail
Contents
data Fail :: Effect where Source #
An effect that expresses failure with a message. This effect allows the use of the MonadFail class.
MonadFail
Constructors
runFail :: Eff (Fail ': es) a -> Eff es (Either String a) Source #
Run a Fail effect in terms of Error.
Fail
Error
runFailIO :: IOE :> es => Eff (Fail ': es) ~> Eff es Source #
Run a Fail effect in terms of throwing exceptions in IO.
IO
Methods
fail :: String -> Eff es a #