
26 Jul
2013
26 Jul
'13
1:19 p.m.
On Thu, Jul 25, 2013 at 9:37 PM, John Wiegley
It's just that I tend to write the following a LOT:
x <- someMonadicFunction when x $ do
Sure, this is a common pattern. But the name is terrible, and it's not clear to me that the functionality is a useful generalization. Why not advocate for whenM instead? whenM :: Monad m => m Bool -> m () -> m ()