Re: Proposal: add Control.Monad.whenJust ∷ (Monad m) ⇒ Maybe α→(α→ m ()) → m ()
qdunkan at gmail.com
Wed Nov 30 17:26:59 CET 2011
On Tue, Nov 29, 2011 at 11:11 PM, Liyang HU <haskell.org at liyang.hu> wrote:
> This particular pattern crops up a lot for me. Does it for anyone else?
Yep, I have that in my personal library, and use it fairly often.
I prefer it to Foldable.forM_ because it's explicit about the type it
takes, forM_ sounds too much like a loop.
More information about the Libraries