Control.Monad proposal: Add whenJust

Petr Pudlák petr.mvd at gmail.com
Fri May 10 22:13:56 CEST 2013


On 05/10/2013 09:28 PM, Bardur Arantsson wrote:
> On 05/10/2013 08:13 AM, Niklas Hambüchen wrote:
>> I would like to propose the addition of
>>
> -1
>
> (forM_ may not be the best name, but Hoogle will usually find what you
> want.)
>
True, I just tested it 
<http://www.haskell.org/hoogle/?hoogle=%28Maybe%20a%29%20-%3E%20%28a%20-%3E%20m%20%28%29%29%20-%3E%20m%20%28%29> 
and forM_ and for_ are the second and the third result (with colors 
nicely indicating that "Maybe a" corresponds to "t a").
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130510/e2d159dc/attachment.htm>


More information about the Libraries mailing list