top | item 9053195

(no title)

shangaslammi | 11 years ago

You need to use curly braces in single-line do-expressions:

    do { line <- getLine; putStrLn line }

discuss

order

iopq|11 years ago

First of all, I took that example from the webpage. And it works in ghci (if printing ? back to me "works", then I guess it works)

shangaslammi|11 years ago

Ah, right, sorry. I completely misread your post.

I guess there's something funky in the unicode handling on the site.