[Haskell-beginners] monads / do syntax
Christopher Howard
christopher.howard at frigidcode.com
Tue Sep 4 14:03:28 CEST 2012
What does the following do expression translate into? (I.e., using >>=
operator and lambda functions.)
code:
--------
h = do a <- (return 1 :: IO Integer)
b <- (return 2)
return (a + b + 1)
--------
--
frigidcode.com
indicium.us
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120904/b3bac86d/attachment.pgp>
More information about the Beginners
mailing list