summaryrefslogtreecommitdiff
path: root/compiler/main/HscTypes.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/main/HscTypes.hs')
-rw-r--r--compiler/main/HscTypes.hs11
1 files changed, 2 insertions, 9 deletions
diff --git a/compiler/main/HscTypes.hs b/compiler/main/HscTypes.hs
index 2c426d9b36..31d22eb3f0 100644
--- a/compiler/main/HscTypes.hs
+++ b/compiler/main/HscTypes.hs
@@ -1543,15 +1543,8 @@ Note [Printing package keys]
In the old days, original names were tied to PackageIds, which directly
corresponded to the entities that users wrote in Cabal files, and were perfectly
suitable for printing when we need to disambiguate packages. However, with
-PackageKey, the situation is different. First, the key is not a human readable
-at all, so we need to consult the package database to find the appropriate
-PackageId to display. Second, there may be multiple copies of a library visible
-with the same PackageId, in which case we need to disambiguate. For now,
-we just emit the actual package key (which the user can go look up); however,
-another scheme is to (recursively) say which dependencies are different.
-
-NB: When we extend package keys to also have holes, we will have to disambiguate
-those as well.
+PackageKey, the situation can be different: if the key is instantiated with
+some holes, we should try to give the user some more useful information.
-}
-- | Creates some functions that work out the best ways to format