Skip to content

Instantly share code, notes, and snippets.

@sshine

sshine/Derp.hs Secret

Created November 17, 2020 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sshine/0dac23b35e19b1ea0aed7a9e6d215c30 to your computer and use it in GitHub Desktop.
Save sshine/0dac23b35e19b1ea0aed7a9e6d215c30 to your computer and use it in GitHub Desktop.
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)
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