[commit: ghc] master: nameIsLocalOrFrom should include interactive modules (6ff3db9)
git at git.haskell.org
git at git.haskell.org
Wed Feb 11 11:16:39 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/6ff3db92140e3ac8cbda50d1a4aab976350ac8c4/ghc
>---------------------------------------------------------------
commit 6ff3db92140e3ac8cbda50d1a4aab976350ac8c4
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Wed Feb 11 10:55:10 2015 +0000
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.
>---------------------------------------------------------------
6ff3db92140e3ac8cbda50d1a4aab976350ac8c4
compiler/basicTypes/Name.hs | 31 +++++++++++++++++++++++++++----
compiler/iface/LoadIface.hs | 16 +++++++---------
compiler/rename/RnEnv.hs | 6 +++---
compiler/typecheck/TcDeriv.hs | 4 ++--
compiler/typecheck/TcRnDriver.hs | 18 ++++++++++++------
testsuite/tests/th/T10019.script | 4 ++++
testsuite/tests/th/T10019.stdout | 1 +
testsuite/tests/th/all.T | 1 +
8 files changed, 57 insertions(+), 24 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 6ff3db92140e3ac8cbda50d1a4aab976350ac8c4
More information about the ghc-commits
mailing list