Equations
- instToBoolOption = { toBool := Option.isSome }
Equations
- OptionT.mk x = x
Instances For
@[always_inline]
Equations
@[inline]
Equations
Instances For
Equations
- OptionT.instAlternative = Alternative.mk (fun {α : Type ?u.20} => OptionT.fail) fun {α : Type ?u.20} => OptionT.orElse
@[inline]
Equations
- OptionT.lift x = OptionT.mk do let __do_lift ← x pure (some __do_lift)
Instances For
Equations
- OptionT.instMonadLift = { monadLift := fun {α : Type ?u.19} => OptionT.lift }
Equations
- OptionT.instMonadFunctor = { monadMap := fun {α : Type ?u.18} (f : {β : Type ?u.18} → m β → m β) (x : OptionT m α) => f x }
instance
OptionT.instMonadExceptOfUnit
{m : Type u → Type v}
[Monad m]
:
MonadExceptOf Unit (OptionT m)
Equations
- OptionT.instMonadExceptOfUnit = { throw := fun {α : Type ?u.21} (x : Unit) => OptionT.fail, tryCatch := fun {α : Type ?u.21} => OptionT.tryCatch }
instance
OptionT.instMonadExceptOf
{m : Type u → Type v}
(ε : Type u)
[MonadExceptOf ε m]
:
MonadExceptOf ε (OptionT m)
Equations
- One or more equations did not get rendered due to their size.
instance
instMonadControlOptionTOfMonad
{m : Type u_1 → Type u_2}
[Monad m]
:
MonadControl m (OptionT m)
Equations
- One or more equations did not get rendered due to their size.