summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/parser/should_compile/read034.hs
blob: 4fa7152f40a697f5478b10b9ec828a26422610de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module ShouldCompile where

-- !!! Section precedences

-- infixl 6  +, -
-- infixr 5  ++, :

f = (++ [] ++ [])
g = (3 + 4 +)

-- prefix negation is like infixl 6.
h x = (-x -)