3 ms·
You need to use curly braces in single-line do-expressions: do { line <- getLine; putStrLn line }
by shangaslammi 12y ago
You need to use curly braces in single-line do-expressions:
do { line <- getLine; putStrLn line }
- iopq 12y agoFirst 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 12y agoAh, right, sorry. I completely misread your post. I guess there's something funky in the unicode handling on the site.