def
OptionT.mapM
{m : Type u → Type v}
{n : Type u → Type w}
[AlternativeMonad n]
(f : {α : Type u} → m α → n α)
{α : Type u}
(x : OptionT m α)
:
n α
Canonical lifting of a map from m α → n α
to one from OptionT m α → n α
given an Alternative n
instance to handle failure.
Equations
- OptionT.mapM f x = do let __do_lift ← f x.run __do_lift.getM