[Haskell-beginners] can I use "pure" all the time instead of "return" now?

Imants Cekusins imantc at gmail.com
Mon May 16 14:19:55 UTC 2016


> Alex

here  is what I tried:

(%%):: Applicative f => a -> f a
(%%) = pure


test::Int -> IO Int
test i0 = (%%) $ i0 + (2::Int)


seems to work..

I can't get %% to work without ()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160516/7b3b23bd/attachment.html>


More information about the Beginners mailing list