Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/a39a19254003f593e49fa0b29c8a10444cc204c2

>---------------------------------------------------------------

commit a39a19254003f593e49fa0b29c8a10444cc204c2
Author: Patrick Palka <[email protected]>
Date:   Fri Mar 30 23:03:23 2012 -0400

    Respect package qualifier when validating imports in GHCi (#5979)
    
    Signed-off-by: Paolo Capriotti <[email protected]>

>---------------------------------------------------------------

 ghc/InteractiveUI.hs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs
index 045c6a6..4525942 100644
--- a/ghc/InteractiveUI.hs
+++ b/ghc/InteractiveUI.hs
@@ -1688,7 +1688,8 @@ checkAdd ii = do
 
     IIDecl d -> do
        let modname = unLoc (ideclName d)
-       m <- lookupModuleName modname
+           pkgqual = ideclPkgQual d
+       m <- GHC.lookupModule modname pkgqual
        when safe $ do
            t <- GHC.isModuleTrusted m
            when (not t) $



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to