diff options
author | Edward Z. Yang <ezyang@cs.stanford.edu> | 2014-11-18 04:17:57 -0800 |
---|---|---|
committer | Edward Z. Yang <ezyang@cs.stanford.edu> | 2014-11-29 23:16:31 -0800 |
commit | 46c53d5ce5a1d00f29ffea0c3741d972e4beab97 (patch) | |
tree | 78c27c7b25416aedcfd76358b55b27ff31b8f282 | |
parent | c0e0ca4d9d5ed47a5e9c88eeab9b538bc76a4eb5 (diff) | |
download | haskell-46c53d5ce5a1d00f29ffea0c3741d972e4beab97.tar.gz |
Special case interactive package key for mkQualPackage.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
-rw-r--r-- | compiler/main/HscTypes.lhs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/HscTypes.lhs b/compiler/main/HscTypes.lhs index 0c73c140eb..bb3fd380bc 100644 --- a/compiler/main/HscTypes.lhs +++ b/compiler/main/HscTypes.lhs @@ -1494,7 +1494,7 @@ mkQualModule dflags mod -- with a package key if the package ID would be ambiguous. mkQualPackage :: DynFlags -> QueryQualifyPackage mkQualPackage dflags pkg_key - | pkg_key == mainPackageKey + | pkg_key == mainPackageKey || pkg_key == interactivePackageKey -- Skip the lookup if it's main, since it won't be in the package -- database! = False |