1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00

Set the current module state.

This commit is contained in:
Rob Rix 2018-05-22 11:03:36 -04:00
parent a4f6b26ae0
commit 93c315402d

View File

@ -85,6 +85,7 @@ graphingLoadErrors recur term = TermEvaluator (runTermEvaluator (recur term) `re
graphingModules :: Members '[ Reader ModuleInfo
, Reader PackageInfo
, State (Graph Vertex)
, State (Maybe ModuleInfo)
] effects
=> SubtermAlgebra Module term (TermEvaluator term location value effects a)
-> SubtermAlgebra Module term (TermEvaluator term location value effects a)
@ -92,7 +93,7 @@ graphingModules recur m = do
let name = BC.pack (modulePath (moduleInfo m))
packageInclusion (Module name)
moduleInclusion (Module name)
recur m
localState (const (Just (moduleInfo m))) (recur m)
packageGraph :: PackageInfo -> Graph Vertex