Equations
@[inline]
Equations
- Lake.OptionIO.toBaseIO self s = match self s with | EStateM.Result.ok a s => EStateM.Result.ok (some a) s | EStateM.Result.error a s => EStateM.Result.ok none s
Instances For
@[inline]
Equations
- Lake.OptionIO.catchFailure f self = EIO.catchExceptions (Lake.OptionIO.toEIO self) f
Instances For
@[inline]
Equations
- Lake.OptionIO.orElse self f = Lake.OptionIO.mk (tryCatch (Lake.OptionIO.toEIO self) f)
Instances For
Equations
- Lake.OptionIO.instAlternativeOptionIO = Alternative.mk (fun {α : Type} => Lake.OptionIO.failure) fun {α : Type} => Lake.OptionIO.orElse
@[always_inline]
Equations
- One or more equations did not get rendered due to their size.
@[inline]
def
Lake.OptionIO.asTask
{α : Type}
(self : Lake.OptionIO α)
(prio : optParam Task.Priority Task.Priority.dedicated)
:
Equations
- Lake.OptionIO.asTask self prio = BaseIO.asTask (Lake.OptionIO.toBaseIO self) prio