Hacker News new | ask | show | jobs
by shangaslammi 4145 days ago
You need to use curly braces in single-line do-expressions:

    do { line <- getLine; putStrLn line }
1 comments

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)
Ah, right, sorry. I completely misread your post.

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