mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Simplify the graphing carriers.
This commit is contained in:
parent
3dcdf3f769
commit
dcc30249c4
@ -213,8 +213,8 @@ appendGraph = modify . (<>)
|
||||
|
||||
|
||||
graphing :: (Carrier sig m, Effect sig)
|
||||
=> Evaluator term address value (StateC (Map address ControlFlowVertex)
|
||||
(Evaluator term address value (StateC (Graph ControlFlowVertex)
|
||||
(Evaluator term address value m)))) result
|
||||
=> Evaluator term address value (StateC (Map address ControlFlowVertex) (Eff
|
||||
(StateC (Graph ControlFlowVertex) (Eff
|
||||
m)))) result
|
||||
-> Evaluator term address value m (Graph ControlFlowVertex, result)
|
||||
graphing = runState mempty . runEvaluator . fmap snd . runState lowerBound . runEvaluator
|
||||
graphing = raiseHandler $ runState mempty . fmap snd . runState lowerBound
|
||||
|
Loading…
Reference in New Issue
Block a user