>>>>> Felipe Almeida Lessa <felipe.le...@gmail.com> writes:

> A few days ago I decided to hoogle the type of whenJust [2] and what I
> discovered is that

>   import Data.Foldable (forM_)
>   whenJust = forM_

You can also use "for_", if you want to use Applicative instead of Monad.

-- 
John Wiegley
FP Complete                         Haskell tools, training and consulting
http://fpcomplete.com               johnw on #haskell/irc.freenode.net

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to