
20 Jun
2006
20 Jun
'06
2:59 a.m.
o To output anything, I need to do 'do'.
If you only have one action, you can omit do, e.g. main = do { putStrLn "Hello, World!" } is identical (after de-sguaring) to main = putStrLn "Hello, World!" Essentially, you are correct; to output anything (i.e. to perform I/O by side effect) your actions will be inside the I/O monad, typically inside of a 'do' block. Jared. -- http://www.updike.org/~jared/ reverse ")-:"