Mon Mar 30 01:37:36 PDT 2009 [email protected]
* Fix Trac #246: order of matching in record patterns
Ignore-this: 2f0a008e0086cfe7ac5100d4253f4fb1
While I was looking at the desugaring of pattern matching (fixing
Trac #3126) I finally got around to fixing another long-standing bug:
when matching in a record pattern, GHC should match left-to-right in
the programmer-specfied order, *not* left-to-right positionally in
the original record declaration.
Needless to say, that requires a little more code.
See Note [Record patterns] in MatchCon.lhs
M ./compiler/deSugar/MatchCon.lhs -39 +111
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20090330083736-1287e-8a4f05e9a9cd760a1798ef0ca3e98fe50e742abe.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc