Thu May 28 09:52:15 PDT 2009 [email protected]
* Improve printing of Orig RdrNames
Ignore-this: a00c57daf826176dbec85402a7982ef4
In Tempate Haskell -ddump-splices, the "after" expression is populated
with RdrNames, many of which are Orig things. We used to print these
fully-qualified, but that's a bit heavy.
This patch refactors the code a bit so that the same print-unqualified
mechanism we use for Names also works for RdrNames. Lots of comments
too, because it took me a while to figure out how it all worked again.
M ./compiler/basicTypes/Name.lhs -15 +20
M ./compiler/basicTypes/RdrName.lhs -1 +1
M ./compiler/main/HscTypes.lhs -12 +20
M ./compiler/utils/Outputable.lhs +1
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20090528165215-1287e-8ce2e5fb2c7f03e471fccc0386d8593d22958c0b.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc