[commit: ghc] master: Comments on mi_usages (ae9ed7d)

git at git.haskell.org git at git.haskell.org
Wed Nov 6 08:32:04 UTC 2013


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/ae9ed7de3a01be24d3da126e94b846b6c50dce0a/ghc

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

commit ae9ed7de3a01be24d3da126e94b846b6c50dce0a
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Nov 5 14:58:24 2013 +0000

    Comments on mi_usages


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

ae9ed7de3a01be24d3da126e94b846b6c50dce0a
 compiler/main/HscTypes.lhs |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/compiler/main/HscTypes.lhs b/compiler/main/HscTypes.lhs
index 2d747b6..eab2d29 100644
--- a/compiler/main/HscTypes.lhs
+++ b/compiler/main/HscTypes.lhs
@@ -1818,7 +1818,10 @@ instance Binary Dependencies where
 noDependencies :: Dependencies
 noDependencies = Deps [] [] [] []
 
--- | Records modules that we depend on by making a direct import from
+-- | Records modules that we depend on, either by direct import,
+-- or because we have inlined something from a direct import, and
+-- hence now rely on the things mentioned in the inlining
+-- See wiki: http://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/RecompilationAvoidance
 data Usage
   -- | Module from another package
   = UsagePackageModule {
@@ -1840,8 +1843,8 @@ data Usage
             -- NB: usages are for parent names only, e.g. type constructors
             -- but not the associated data constructors.
         usg_exports  :: Maybe Fingerprint,
-            -- ^ Fingerprint for the export list we used to depend on this module,
-            -- if we depend on the export list
+            -- ^ Fingerprint for the export list of this module,
+            -- if we directly imported it (and hence we depend on its export list)
         usg_safe :: IsSafeImport
             -- ^ Was this module imported as a safe import
     }                                           -- ^ Module from the current package



More information about the ghc-commits mailing list