Improve printing of Orig RdrNames
authorsimonpj@microsoft.com <unknown>
Thu, 28 May 2009 16:52:15 +0000 (16:52 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 28 May 2009 16:52:15 +0000 (16:52 +0000)
commit30ced40470d0bb2a14a8eb25dd77ca99edd88a5a
tree84af3de0b75f7ee33c416385fd3ab92527924083
parenta99906e5272be7c6212327a32c83eac0a9b08b4b
Improve printing of Orig RdrNames

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.
compiler/basicTypes/Name.lhs
compiler/basicTypes/RdrName.lhs
compiler/main/HscTypes.lhs
compiler/utils/Outputable.lhs