[Haskell-beginners] More direct binding of IO result

Arlen Cuss celtic at sairyx.org
Sun May 15 09:10:42 CEST 2011


>     fmap putStrLn :: IO String -> IO (IO ())

Ah, thanks! Should've thought more clearly about the types involved
here!

>     join :: IO (IO a) -> IO a

Super-handy to know :D I also note that `concat' is simply `join' in the
list monad!

> Michael

Arlen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110515/5a97dbea/attachment-0001.pgp>


More information about the Beginners mailing list