1
1
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:
Rob Rix 2018-10-18 08:20:36 -04:00
parent c9e6912068
commit b541a973a4

View File

@ -109,7 +109,7 @@ graphingPackages :: ( Member (Reader PackageInfo) sig
, Member (State (Graph ControlFlowVertex)) sig
, Member (Reader ControlFlowVertex) sig
, Carrier sig m
, Applicative m
, Monad m
)
=> Open (Module term -> m a)
graphingPackages recur m =
@ -190,7 +190,7 @@ variableDefinition var = do
context <- ask
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 . (<>)