Mon Mar 30 01:34:35 PDT 2009 [email protected]
* Fix Trac #3126: matching overloaded literals
Ignore-this: 560c5e7dba95400bef4a73569ea26b82
Claus Reinke uncovered a long-standing bug in GHC, whereby we were
combining the pattern-match on overloaded literals, missing the fact
that an intervening pattern (for a different literal) might also
match. (If someone had a very odd implementation of fromInteger!)
See Note [Grouping overloaded literal patterns] in Match.lhs
If this merges smoothly to 6.10, go for it, but it's very much
a corner case.
Thank you Claus!
M ./compiler/deSugar/Match.lhs -24 +41
M ./compiler/deSugar/MatchLit.lhs -9 +3
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20090330083435-1287e-559c2c84dabdfe72a87574ce91e3247b1c7e035c.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc