
27 Jan
2013
27 Jan
'13
12:55 a.m.
Felipe Almeida Lessa
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