Skip to content

Instantly share code, notes, and snippets.

@deepakduggirala
Last active June 10, 2018 08:26
Show Gist options
  • Save deepakduggirala/f34e721207c39ce3236d177c9f20f558 to your computer and use it in GitHub Desktop.
Save deepakduggirala/f34e721207c39ce3236d177c9f20f558 to your computer and use it in GitHub Desktop.
Haskell Precendence
Precedence Left associative operators Non-associative operators Right associative operators
9 !! .
8 ^, ^^, **
7 *, /, `div`, `mod`, `rem`, `quot`
6 +, -
5 :, ++
4 ==, /=, <, <=, >, >=,`elem`, `notElem`
3 &&
2
1 >>, >>=
0 $, $!, `seq`

Function application has higher precedence has then any infix operators and is left associative. Any operator lacking a fixity declaration is assumed to be infixl 9.

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