1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

Rename importGraph to graphImports.

This commit is contained in:
Rob Rix 2018-04-05 12:53:44 -04:00
parent 70c1224d47
commit 648675aa4e

View File

@ -23,7 +23,7 @@ module Semantic.Task
, decorate , decorate
, diff , diff
, render , render
, importGraph , graphImports
-- * Concurrency -- * Concurrency
, distribute , distribute
, distributeFor , distributeFor
@ -131,8 +131,8 @@ render renderer = send . Render renderer
-- | Render and serialize the import graph for a given 'Package'. -- | Render and serialize the import graph for a given 'Package'.
importGraph :: (Apply Eq1 syntax, Apply Analysis.Evaluatable syntax, Apply FreeVariables1 syntax, Apply Functor syntax, Apply Ord1 syntax, Apply Show1 syntax, Member Syntax.Identifier syntax, Member Task effs, Ord ann, Show ann) => Package (Term (Union syntax) ann) -> Eff effs B.ByteString graphImports :: (Apply Eq1 syntax, Apply Analysis.Evaluatable syntax, Apply FreeVariables1 syntax, Apply Functor syntax, Apply Ord1 syntax, Apply Show1 syntax, Member Syntax.Identifier syntax, Member Task effs, Ord ann, Show ann) => Package (Term (Union syntax) ann) -> Eff effs B.ByteString
importGraph package = renderGraph <$> analyze (Analysis.SomeAnalysis (Analysis.evaluatePackage package `asAnalysisForTypeOfPackage` package)) graphImports package = renderGraph <$> analyze (Analysis.SomeAnalysis (Analysis.evaluatePackage package `asAnalysisForTypeOfPackage` package))
where asAnalysisForTypeOfPackage :: Abstract.ImportGraphing (Evaluating (Located Precise term) term (Value (Located Precise term))) effects value -> Package term -> Abstract.ImportGraphing (Evaluating (Located Precise term) term (Value (Located Precise term))) effects value where asAnalysisForTypeOfPackage :: Abstract.ImportGraphing (Evaluating (Located Precise term) term (Value (Located Precise term))) effects value -> Package term -> Abstract.ImportGraphing (Evaluating (Located Precise term) term (Value (Located Precise term))) effects value
asAnalysisForTypeOfPackage = const asAnalysisForTypeOfPackage = const