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. :-(
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe