summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/ParserNoMultiWayIf.hs
blob: f9ded3dc69f2e8b56da248cda4eac2cbfffbd89d (plain)
1
2
3
4
5
6
7
module ParserNoMultiWayIf where

x = 123
y = if | x < 0     -> -1
       | x == 0    -> 0
       | otherwise -> 1