Control.Monad proposal: Add whenJust

Petr Pudlák petr.mvd at
Fri May 10 20:25:05 CEST 2013

2013/5/10 Evan Laforge <qdunkan at>

> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Libraries mailing list