Parser disallows declarations like "f x # y = y".

Fixes #342.
This commit is contained in:
Brian Huffman 2016-06-16 17:05:59 -07:00
parent 20965a0b0b
commit 2cface6f31

View File

@ -334,7 +334,7 @@ var :: { LPName }
| '(' op ')' { $2 }
apats :: { [Pattern PName] }
: ipat { [$1] }
: apat { [$1] }
| apats1 apat { $2 : $1 }
apats1 :: { [Pattern PName] }