1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

Rename packageVertex to packageGraph.

This commit is contained in:
Rob Rix 2018-04-02 18:15:30 -04:00
parent a87fe24e2f
commit d2713eca19

View File

@ -75,12 +75,12 @@ instance ( Effectful m
analyzeModule recur m = do
let name = moduleName (moduleInfo m)
o <- raise ask
modifyImportGraph (packageVertex @term o >< vertex (Module name) <>)
modifyImportGraph (packageGraph @term o >< vertex (Module name) <>)
insertVertexName name
liftAnalyze analyzeModule recur m
packageVertex :: SomeOrigin term -> ImportGraph
packageVertex = maybe empty (vertex . Package . packageName) . withSomeOrigin originPackage
packageGraph :: SomeOrigin term -> ImportGraph
packageGraph = maybe empty (vertex . Package . packageName) . withSomeOrigin originPackage
insertVertexName :: forall m location term value effects
. ( Effectful m