関数適用の優先順位
関数適用の優先順位はどんな演算子の優先順位よりも高い。
演算子化された関数の優先順位は、infixl 9。
プレリュード演算子の優先順位と結合性
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` |
ただし、無結合(infix)、左結合(infixl)、右結合(infixr)。