
15 May
2011
15 May
'11
2:49 a.m.
-- Tried this and it didn't work. main = do putStrLn (<- readFile "data.txt")
My question; how come fmap doesn's also work here? (though it's not a syntax-based solution): Prelude> fmap putStrLn (readFile "data.txt") Prelude> I thought it may have operated to make a new IO action, but if that were the case then ghci should have executed the result here. A