FIX #1465, error messages could sometimes say things like "A.T doesn't match A.T"
authorSimon Marlow <simonmar@microsoft.com>
Thu, 6 Sep 2007 09:37:44 +0000 (09:37 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 6 Sep 2007 09:37:44 +0000 (09:37 +0000)
commit421819753b3eb4940a26e578ef0e4c5cd31761fa
tree37bd143031904e903655d8cf06d790e01efbac5f
parentc02da7d1176d2165e7f9ec6f42752d456dd9fee2
FIX #1465, error messages could sometimes say things like "A.T doesn't match A.T"
This turned out to be a black hole, however we believe we now have a
plan that does the right thing and shouldn't need to change again.
Error messages will only ever refer to a name in an unambiguous way,
falling back to <package>:<module>.<name> if no unambiguous shorter
variant can be found.  See HscTypes.mkPrintUnqualified for the
details.

Earlier hacks to work around this problem have been removed (TcSimplify).
compiler/basicTypes/Module.lhs
compiler/basicTypes/Name.lhs
compiler/deSugar/DsMonad.lhs
compiler/ghci/GhciTags.hs
compiler/main/GHC.hs
compiler/main/HscTypes.lhs
compiler/rename/RnNames.lhs
compiler/typecheck/TcRnMonad.lhs
compiler/typecheck/TcSimplify.lhs
compiler/utils/Outputable.lhs