From cedd5bf8e3fbdf89b76f99e11d564245f7dee2ea Mon Sep 17 00:00:00 2001 From: Andreas Klebinger Date: Fri, 30 Jul 2021 16:51:07 +0200 Subject: Improve documentation for HscTypes.usg_mod_hash --- compiler/GHC/Unit/Module/Deps.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler/GHC/Unit/Module/Deps.hs b/compiler/GHC/Unit/Module/Deps.hs index 2cafbbdcd4..9832383d8a 100644 --- a/compiler/GHC/Unit/Module/Deps.hs +++ b/compiler/GHC/Unit/Module/Deps.hs @@ -110,7 +110,7 @@ data Usage usg_mod :: Module, -- ^ External package module depended on usg_mod_hash :: Fingerprint, - -- ^ Cached module fingerprint + -- ^ Cached module ABI fingerprint (corresponds to mi_mod_hash) usg_safe :: IsSafeImport -- ^ Was this module imported as a safe import } @@ -119,7 +119,10 @@ data Usage usg_mod_name :: ModuleName, -- ^ Name of the module usg_mod_hash :: Fingerprint, - -- ^ Cached module fingerprint + -- ^ Cached module ABI fingerprint (corresponds to mi_mod_hash). + -- This may be out dated after recompilation was avoided, but is + -- still used as a fast initial check for change during + -- recompilation avoidance. usg_entities :: [(OccName,Fingerprint)], -- ^ Entities we depend on, sorted by occurrence name and fingerprinted. -- NB: usages are for parent names only, e.g. type constructors -- cgit v1.2.1