summaryrefslogtreecommitdiff
path: root/compiler/main
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2013-08-22 17:32:27 -0500
committerAustin Seipp <aseipp@pobox.com>2013-08-22 17:33:01 -0500
commitb6a572b4272274efe117d5e04f4b9d49e124009c (patch)
tree35a7c9a85f8bc246869beb2f32b948270b3ce8a0 /compiler/main
parent3310068c0df0eb694aa7395854fb3a5594884369 (diff)
downloadhaskell-b6a572b4272274efe117d5e04f4b9d49e124009c.tar.gz
Add some more comments to UsageFile.
This brings them up to date with the changes in #8144. Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'compiler/main')
-rw-r--r--compiler/main/HscTypes.lhs9
1 files changed, 8 insertions, 1 deletions
diff --git a/compiler/main/HscTypes.lhs b/compiler/main/HscTypes.lhs
index a65437e31a..260377062f 100644
--- a/compiler/main/HscTypes.lhs
+++ b/compiler/main/HscTypes.lhs
@@ -1794,10 +1794,17 @@ data Usage
usg_safe :: IsSafeImport
-- ^ Was this module imported as a safe import
} -- ^ Module from the current package
+ -- | A file upon which the module depends, e.g. a CPP #include, or using TH's
+ -- 'addDependentFile'
| UsageFile {
usg_file_path :: FilePath,
+ -- ^ External file dependency. From a CPP #include or TH
+ -- addDependentFile. Should be absolute.
usg_file_hash :: Fingerprint
- -- ^ External file dependency. From a CPP #include or TH addDependentFile. Should be absolute.
+ -- ^ 'Fingerprint' of the file contents. We don't consider
+ -- things like modification timestamps here, because there's
+ -- no reason to recompile if the actual contents don't change.
+ -- This previously lead to odd recompilation behaviors; see #8114
}
deriving( Eq )
-- The export list field is (Just v) if we depend on the export list: