Fix nasty module graph caching issue
resolvedComponentsCache did not consider outgoing edges in the module graph when computing the set of dependent files i.e. for `A -> B, A -> C` `flatten` would give [B,C] instead of [A,B,C]
This commit is contained in:
@@ -267,7 +267,8 @@ resolvedComponentsCache = Cached {
|
||||
-> [FilePath]
|
||||
flatten = Map.elems
|
||||
>>> map (gmcHomeModuleGraph >>> gmgGraph
|
||||
>>> Map.elems
|
||||
>>> (Map.keysSet &&& Map.elems)
|
||||
>>> uncurry insert
|
||||
>>> map (Set.map mpPath)
|
||||
>>> Set.unions
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user