@[inline, reducible]
A process exit / return code.
Equations
Instances For
- exit : {α : Type u} → Lake.ExitCode → m α
Instances
instance
Lake.instMonadExit
{m : Type u_1 → Type u_2}
{n : Type u_1 → Type u_3}
[MonadLift m n]
[Lake.MonadExit m]
:
Equations
- Lake.instMonadExit = { exit := fun {α : Type u_1} (rc : Lake.ExitCode) => liftM (Lake.exit rc) }
@[inline]
def
Lake.exitIfErrorCode
{m : Type → Type u_1}
[Pure m]
[Lake.MonadExit m]
(rc : Lake.ExitCode)
:
m Unit
Exit with ExitCode
if it is not 0. Otherwise, continue.