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 ")-:"
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to