On Sat, 9 May 2009, michael rice wrote:

Prelude> Just 3 >>= (1+)

fmap (1+) (Just 3)

or

Just 3 >>= return . (1+)

or, with consistent order of functions

return . (1+) =<< Just 3
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to