For :info, return all matching Names, rather than complaining about ambiguity
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 22 Dec 2014 12:00:10 +0000 (12:00 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 22 Dec 2014 12:01:27 +0000 (12:01 +0000)
commitcf0a55d76cf945a97fc229b77d6e6177fb14125d
treee8dd2f63799aa09c4c964c8043f6b17d9cfa7f12
parent2ba36b656f7f0522d702ae0cc92b5fbe289f1333
For :info, return all matching Names, rather than complaining about ambiguity

This fixes Trac #9881, and gives more helpful output in the case of ambiguity.
Certainly more helpful than the positively-misleading error we get right now.
compiler/rename/RnEnv.hs
compiler/typecheck/TcRnDriver.hs
testsuite/tests/ghci.debugger/scripts/break019.stderr
testsuite/tests/ghci/scripts/T9881.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/T9881.stdout [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T