mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
appendGraph requires a Monad.
This commit is contained in:
parent
c9e6912068
commit
b541a973a4
@ -109,7 +109,7 @@ graphingPackages :: ( Member (Reader PackageInfo) sig
|
|||||||
, Member (State (Graph ControlFlowVertex)) sig
|
, Member (State (Graph ControlFlowVertex)) sig
|
||||||
, Member (Reader ControlFlowVertex) sig
|
, Member (Reader ControlFlowVertex) sig
|
||||||
, Carrier sig m
|
, Carrier sig m
|
||||||
, Applicative m
|
, Monad m
|
||||||
)
|
)
|
||||||
=> Open (Module term -> m a)
|
=> Open (Module term -> m a)
|
||||||
graphingPackages recur m =
|
graphingPackages recur m =
|
||||||
@ -190,7 +190,7 @@ variableDefinition var = do
|
|||||||
context <- ask
|
context <- ask
|
||||||
appendGraph (vertex context `connect` vertex var)
|
appendGraph (vertex context `connect` vertex var)
|
||||||
|
|
||||||
appendGraph :: (Member (State (Graph v)) sig, Carrier sig m) => Graph v -> m ()
|
appendGraph :: (Member (State (Graph v)) sig, Carrier sig m, Monad m) => Graph v -> m ()
|
||||||
appendGraph = modify . (<>)
|
appendGraph = modify . (<>)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user