Commit a39a1925 authored by parcs's avatar parcs Committed by pcapriotti
Browse files

Respect package qualifier when validating imports in GHCi (#5979)

Signed-off-by: pcapriotti's avatarPaolo Capriotti <>
parent 83d9b380
......@@ -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) $
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment