patch applied (ghc): Bug-fix for infix function definitions
(parse/rename)
Simon Peyton Jones
simonpj at microsoft.com
Fri May 19 06:17:20 EDT 2006
Fri May 19 02:50:22 PDT 2006 simonpj at microsoft.com
* 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.
M ./compiler/parser/RdrHsSyn.lhs -13 +34
M ./compiler/rename/RnTypes.lhs -1 +8
More information about the Cvs-ghc
mailing list