mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Define an Interpreter instance for ImportGraphing.
This commit is contained in:
parent
ff3ba0fa9d
commit
c07272bc7e
@ -169,3 +169,8 @@ vertexToType :: Vertex -> Text
|
||||
vertexToType Package{} = "package"
|
||||
vertexToType Module{} = "module"
|
||||
vertexToType Variable{} = "variable"
|
||||
|
||||
|
||||
instance Interpreter effects (result, ImportGraph) rest m
|
||||
=> Interpreter (State ImportGraph ': effects) result rest (ImportGraphing m) where
|
||||
interpret = interpret . raise @m . flip runState mempty . lower
|
||||
|
Loading…
Reference in New Issue
Block a user