
24 Sep
2007
24 Sep
'07
12:19 p.m.
On Mon, 24 Sep 2007, John Wicket wrote:
I am still in an imperative way of thinking. In this example here; how would I call "putStrLn" and then set the function with a value. Eg:
aa :: String -> IO () aa instr = do putStrLn "abc" putStrLn "abc" return "123"
The article http://haskell.org/hawiki/ThatAnnoyingIoType contained more information, in the good old days, when Hawiki was still running. :-(