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. (cherry picked from commit 6ff3db92)
Showing
- compiler/basicTypes/Name.hs 27 additions, 4 deletionscompiler/basicTypes/Name.hs
- compiler/iface/LoadIface.hs 7 additions, 9 deletionscompiler/iface/LoadIface.hs
- compiler/rename/RnEnv.hs 3 additions, 3 deletionscompiler/rename/RnEnv.hs
- compiler/typecheck/TcDeriv.hs 2 additions, 2 deletionscompiler/typecheck/TcDeriv.hs
- compiler/typecheck/TcRnDriver.hs 12 additions, 6 deletionscompiler/typecheck/TcRnDriver.hs
- testsuite/tests/th/T10019.script 4 additions, 0 deletionstestsuite/tests/th/T10019.script
- testsuite/tests/th/T10019.stdout 1 addition, 0 deletionstestsuite/tests/th/T10019.stdout
- testsuite/tests/th/all.T 1 addition, 0 deletionstestsuite/tests/th/all.T
Loading
Please register or sign in to comment