3 ms·
λ do line <- getLine; putStrLn line > л mueval-core: Imports.hs: removeLink: does not exist (No such file or directory) ExitFailure 1 What did I do wrong?
by iopq 12y ago
λ do line <- getLine; putStrLn line
> л
mueval-core: Imports.hs: removeLink: does not exist (No such file or directory)
ExitFailure 1
What did I do wrong?
- shangaslammi 12y agoYou 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.
- tel 12y agoSeems like a bug to me.
- chrisdone 12y agoYou did nothing wrong, the hundreds of active users due to announcement buzz is a little outside the scope of the sandbox's capabilities, it has some race condition under heavy load. We considered spending time optimizing this in anticipating of the announcement, but more pressing issues took priority. Re-running the line should work.