Equations
- OptionT.mk x = x
Instances For
@[inline]
def
OptionT.bind
{m : Type u → Type v}
[Monad m]
{α : Type u}
{β : Type u}
(x : OptionT m α)
(f : α → OptionT m β)
:
OptionT m β
Equations
- OptionT.bind x f = OptionT.mk do let __do_lift ← x match __do_lift with | some a => f a | none => pure none
Instances For
Equations
- OptionT.instAlternativeOptionT = Alternative.mk (fun {α : Type u} => OptionT.fail) fun {α : Type u} => OptionT.orElse
@[inline]
Equations
- OptionT.lift x = OptionT.mk do let __do_lift ← x pure (some __do_lift)
Instances For
instance
OptionT.instMonadExceptOfOptionT
{m : Type u → Type v}
(ε : Type u)
[Monad m]
[MonadExceptOf ε m]
:
MonadExceptOf ε (OptionT m)
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.