Skip to content

Instantly share code, notes, and snippets.

@maximveksler
Last active December 12, 2015 04:58
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 maximveksler/4718224 to your computer and use it in GitHub Desktop.
Save maximveksler/4718224 to your computer and use it in GitHub Desktop.
Prelude> :{
Prelude| let abs x
Prelude| | x < 0 = 0 - x
Prelude| | otherwise = x
Prelude| :}
<interactive>:59:5: parse error (possibly incorrect indentation)
@glguy
Copy link

glguy commented Feb 5, 2013

Prelude> :{
Prelude| let abs x
Prelude|      | x < 0 = 0 - x 
Prelude|      | otherwise = x
Prelude| :}
Prelude> abs 10
10

@maximveksler
Copy link
Author

Prelude> :{
Prelude| let abs x
Prelude|      | otherwise = x
Prelude|      | x < 0 = 0 - x
Prelude| :}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment