@[instance_reducible]
instance Lake.instMonadErrorOfMonadLift {m : Type u_1 → Type u_2} {n : Type u_1 → Type u_3} [MonadLift m n] [MonadError m] :
@[inline]
def Lake.MonadError.runEIO {m : Type → Type 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.
Instances For
@[inline]
def Lake.MonadError.runIO {m : Type → Type 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.