Documentation

Lake.Util.Error

instance Lake.instMonadErrorOfMonadLift {m : Type u_1 → Type u_2} {n : Type u_1 → Type u_3} [MonadLift m n] [MonadError m] :
Equations
Equations
Equations
Equations
@[inline]
def Lake.MonadError.runEIO {m : TypeType u_1} {ε α : Type} [Monad m] [MonadError m] [MonadLiftT BaseIO m] [ToString ε] (x : EIO ε α) :
m α

Perform an EIO action. If it throws an error, invoke error with its string representation.

Equations
@[inline]
def Lake.MonadError.runIO {m : TypeType u_1} {α : Type} [Monad m] [MonadError m] [MonadLiftT BaseIO m] (x : IO α) :
m α

Perform an IO action. If it throws an error, invoke error with its string representation.

Equations