-
-
Save sshine/0dac23b35e19b1ea0aed7a9e6d215c30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bad1 :: [Int] | |
bad1 = do | |
x <- [1..10] | |
let y = 3 in | |
return (x * y) | |
good1 :: [Int] | |
good1 = do | |
x <- [1..10] | |
let y = 3 in | |
return (x * y) | |
good2 :: [Int] | |
good2 = do | |
x <- [1..10] | |
let y = 3 | |
return (x * y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse error (possibly incorrect indentation or mismatched brackets) | |
| | |
5 | return (x * y) | |
| ^ | |
Failed, no modules loaded. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment