[commit: ghc] ghc-7.10: nameIsLocalOrFrom should include interactive modules (4e25dc6)
git at git.haskell.org
git at git.haskell.org
Thu Feb 12 16:14:57 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.10
Link : http://ghc.haskell.org/trac/ghc/changeset/4e25dc631b9c26365b57d315655723f088480f7e/ghc
>---------------------------------------------------------------
commit 4e25dc631b9c26365b57d315655723f088480f7e
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.
(cherry picked from commit 6ff3db92140e3ac8cbda50d1a4aab976350ac8c4)
>---------------------------------------------------------------
4e25dc631b9c26365b57d315655723f088480f7e
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 4e25dc631b9c26365b57d315655723f088480f7e
More information about the ghc-commits
mailing list