Bug-fix for infix function definitions (parse/rename)
authorsimonpj@microsoft.com <unknown>
Fri, 19 May 2006 09:50:22 +0000 (09:50 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 19 May 2006 09:50:22 +0000 (09:50 +0000)
commitcbc86d748d5f7b5ad5503c9e87c0b5c0402f27bc
treea75a4662071487d2b3f4be370c7d71c85999f575
parentc2a3f5861959f9b80ee65c16212447788217223d
Bug-fix for infix function definitions (parse/rename)

Fix a crash provoked by

x `op` y = x
op       = True

The trouble was that there is currently a single 'infix' flag for the
whole group; and RnTypes.checkPrecMatch was therefore expecting the
second eqn to have two args.

This fixes the crash, and also or-s the infix flags for the various
eqns together; previously it was just taken from the first eqn, which
was wrong.
compiler/parser/RdrHsSyn.lhs
compiler/rename/RnTypes.lhs