mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +03:00
Rephrase ImportGraphAnalysis as a composed handler.
This commit is contained in:
parent
97775268e6
commit
115c21074b
@ -62,18 +62,15 @@ parseModule parser rootDir file = do
|
||||
moduleForBlob rootDir blob <$> parse parser blob
|
||||
|
||||
|
||||
type ImportGraphAnalysis term
|
||||
= ImportGraphing
|
||||
( BadAddresses
|
||||
( BadModuleResolutions
|
||||
( BadVariables
|
||||
( BadValues
|
||||
( BadSyntax
|
||||
( Erroring (Analysis.LoadError term)
|
||||
( Evaluating
|
||||
(Located Precise term)
|
||||
term
|
||||
(Value (Located Precise term)))))))))
|
||||
importGraphAnalysis
|
||||
= evaluating
|
||||
. erroring @(Analysis.LoadError term)
|
||||
. resumingBadSyntax
|
||||
. resumingBadValues
|
||||
. resumingBadVariables
|
||||
. resumingBadModuleResolutions
|
||||
. resumingBadAddresses
|
||||
. importGraphing
|
||||
|
||||
-- | Render the import graph for a given 'Package'.
|
||||
graphImports :: ( Show ann
|
||||
|
Loading…
Reference in New Issue
Block a user