--show-iface: Qualify all non-local names
authorSimon Jakobi <simon.jakobi@gmail.com>
Sun, 12 Aug 2018 09:10:39 +0000 (11:10 +0200)
committerBen Gamari <ben@smart-cactus.org>
Thu, 23 Aug 2018 22:39:34 +0000 (18:39 -0400)
commitc69c9d399746966f5d4ffbf73f49cd768a097dbd
tree5c458bc92af07cd9c8de81c15f3eaf39246d3b9e
parent02829747cdf72fe83e511232cef12cd01df5dce6
--show-iface: Qualify all non-local names

Summary:
In order to disambiguate names from different modules, qualify all names
that don't originate in the current module.

Also update docs for QueryQualifyName

Test Plan: validate

Reviewers: simonpj, bgamari

Reviewed By: simonpj

Subscribers: rwbarton, thomie, carter, tdammers

GHC Trac Issues: #15269

Differential Revision: https://phabricator.haskell.org/D4852

(cherry picked from commit d42eef344a71990d12f27e88cdf10ba0b2a2f34b)
compiler/iface/LoadIface.hs
compiler/utils/Outputable.hs
testsuite/tests/showIface/Orphans.stdout
testsuite/tests/simplCore/should_compile/T4306.stdout
testsuite/tests/simplCore/should_compile/T4918.stdout