File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ type instance RuleResult GetParsedModuleWithComments = ParsedModule
74
74
75
75
type instance RuleResult GetModuleGraph = DependencyInformation
76
76
77
- -- same as DependencyInformation but only rebuilds if the target file deps changes
77
+ -- same as GetModuleGraph but only rebuilds if the target file deps changes
78
78
type instance RuleResult GetFileModuleGraph = DependencyInformation
79
79
80
80
data GetKnownTargets = GetKnownTargets
Original file line number Diff line number Diff line change @@ -1145,7 +1145,7 @@ needsCompilationRule file
1145
1145
| " boot" `isSuffixOf` fromNormalizedFilePath file =
1146
1146
pure (Just $ encodeLinkableType Nothing , Just Nothing )
1147
1147
needsCompilationRule file = do
1148
- graph <- useNoFile GetModuleGraph
1148
+ graph <- use GetFileModuleGraph file
1149
1149
res <- case graph of
1150
1150
-- Treat as False if some reverse dependency header fails to parse
1151
1151
Nothing -> pure Nothing
Original file line number Diff line number Diff line change @@ -411,8 +411,8 @@ instance NFData NamedModuleDep where
411
411
instance Show NamedModuleDep where
412
412
show NamedModuleDep {.. } = show nmdFilePath
413
413
414
- -- | Build a map from file path to fingerprint. The fingerprint is built
415
- -- from the fingerprints of the file and all its dependencies.
414
+ -- | Build a map from file path to its full fingerprint.
415
+ -- The fingerprint is depend on both the fingerprints of the file and all its dependencies.
416
416
-- This is used to determine if a file has changed and needs to be reloaded.
417
417
buildAccFingerFilePathIdMap :: FilePathIdMap FilePathIdSet -> FilePathIdMap Fingerprint -> FilePathIdMap Fingerprint
418
418
buildAccFingerFilePathIdMap modulesDeps shallowFingers = go keys IntMap. empty
You can’t perform that action at this time.
0 commit comments