Skip to content

Instantly share code, notes, and snippets.

@maximveksler
Last active December 12, 2015 04:58
Show Gist options
  • Select an option

  • Save maximveksler/4718224 to your computer and use it in GitHub Desktop.

Select an option

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

glguy commented Feb 5, 2013

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

@maximveksler

Copy link
Copy Markdown
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