mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Swap the order of the BadVariables effects.
This commit is contained in:
parent
25af1cfcaa
commit
68b748139d
@ -20,7 +20,7 @@ instance ( Effectful m
|
||||
, MonadValue location value effects (BadVariables m)
|
||||
)
|
||||
=> MonadAnalysis location term value effects (BadVariables m) where
|
||||
type Effects location term value (BadVariables m) = State [Name] ': Resumable (EvalError value) ': Effects location term value m
|
||||
type Effects location term value (BadVariables m) = Resumable (EvalError value) ': State [Name] ': Effects location term value m
|
||||
|
||||
analyzeTerm eval term = resume @(EvalError value) (liftAnalyze analyzeTerm eval term) (
|
||||
\yield err -> do
|
||||
|
@ -91,5 +91,5 @@ graphImports package = analyze (Analysis.SomeAnalysis (Analysis.evaluatePackage
|
||||
asAnalysisForTypeOfPackage = const
|
||||
|
||||
extractGraph result = case result of
|
||||
(Right (Right (Right (Right (Right (Right (Right (Right (Right (_, graph)), _))))))), _) -> pure $! graph
|
||||
(Right (Right (Right (Right (Right (Right (Right (Right (Right (_, graph))), _)))))), _) -> pure $! graph
|
||||
_ -> throwError (toException (Exc.ErrorCall ("graphImports: import graph rendering failed " <> show result)))
|
||||
|
Loading…
Reference in New Issue
Block a user