nameIsLocalOrFrom should include interactive modules
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 11 Feb 2015 10:55:10 +0000 (10:55 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 11 Feb 2015 11:18:24 +0000 (11:18 +0000)
commit6ff3db92140e3ac8cbda50d1a4aab976350ac8c4
tree2560bc260b80fd79f6eeff258119a0e27dbebd7f
parent3568bf3fe76b95208f650f356a0668113838d842
nameIsLocalOrFrom should include interactive modules

The provoking cause was Trac #10019, but it revealed that nameIsLocalOrFrom
should really include all interactive modules (ones from the 'interactive'
package).  Previously we had some ad-hoc 'isInteractiveModule' tests with
some (but not all) the calls to nameIsLocalOrFrom.

See the new comments with Name.nameIsLocalOrFrom.
compiler/basicTypes/Name.hs
compiler/iface/LoadIface.hs
compiler/rename/RnEnv.hs
compiler/typecheck/TcDeriv.hs
compiler/typecheck/TcRnDriver.hs
testsuite/tests/th/T10019.script [new file with mode: 0644]
testsuite/tests/th/T10019.stdout [new file with mode: 0644]
testsuite/tests/th/all.T