Control.Monad proposal: Add whenJust
Petr Pudlák
petr.mvd at gmail.com
Fri May 10 20:25:05 CEST 2013
2013/5/10 Evan Laforge <qdunkan at gmail.com>
> I know about forM_, but I don't use it because it sounds too much like a
> loop.
>
I'd say `forM_` is more like "for each" for a collection (rather than
C-style "for" loop), which makes perfect sense for Maybe. So I prefer
`forM_` instead of adding a new function.
Petr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130510/8498fda1/attachment-0001.htm>
More information about the Libraries
mailing list