@[inline]
Equations
Instances For
instance
ReaderT.instAlternativeOfMonad
{m : Type u_1 → Type u_2}
{ρ : Type u_1}
[Alternative m]
[Monad m]
:
Alternative (ReaderT ρ m)
Equations
- ReaderT.instAlternativeOfMonad = Alternative.mk (fun {α : Type ?u.30} => ReaderT.failure) fun {α : Type ?u.30} => ReaderT.orElse
instance
instMonadControlReaderT
{m : Type u_1 → Type u_2}
{ρ : Type u_1}
:
MonadControl m (ReaderT ρ m)
Equations
- One or more equations did not get rendered due to their size.
@[always_inline]
instance
ReaderT.tryFinally
{m : Type u_1 → Type u_2}
{ρ : Type u_1}
[MonadFinally m]
:
MonadFinally (ReaderT ρ m)
Equations
- ReaderT.tryFinally = { tryFinally' := fun {α β : Type ?u.30} (x : ReaderT ρ m α) (h : Option α → ReaderT ρ m β) (ctx : ρ) => tryFinally' (x ctx) fun (a? : Option α) => h a? ctx }