Skip to content

Commit

Permalink
clarify toMaybeT docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
joelberkeley authored and gallais committed Jun 5, 2024
1 parent c0ac024 commit 40d4cd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/base/Control/Monad/Maybe.idr
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ public export
fromMaybeT : Monad m => m a -> MaybeT m a -> m a
fromMaybeT v x = runMaybeT x >>= maybe v pure

||| Return a value if a condition is met, or else no value.
||| Return a value if a condition is met, or else no value. The condition
||| only affects whether the `Maybe` produces a value; the effect is run
||| either way.
|||
||| This is a version of `toMaybe` lifted to work with `MaybeT`.
public export
Expand Down

0 comments on commit 40d4cd8

Please sign in to comment.