mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
📝 DeadCodeAnalysis.
This commit is contained in:
parent
dcc0d5e607
commit
479f6d2992
@ -50,6 +50,7 @@ evaluateDead term = run @(DeadCodeEffects term value) . runEvaluator . runDeadCo
|
|||||||
subterms term = para (foldMap (uncurry ((<>) . point))) term <> point term
|
subterms term = para (foldMap (uncurry ((<>) . point))) term <> point term
|
||||||
|
|
||||||
|
|
||||||
|
-- | A newtype wrapping 'Evaluator' which performs a dead code analysis on evaluation.
|
||||||
newtype DeadCodeAnalysis term value a = DeadCodeAnalysis { runDeadCodeAnalysis :: Evaluator (DeadCodeEffects term value) term value a }
|
newtype DeadCodeAnalysis term value a = DeadCodeAnalysis { runDeadCodeAnalysis :: Evaluator (DeadCodeEffects term value) term value a }
|
||||||
deriving (Applicative, Functor, Monad, MonadFail)
|
deriving (Applicative, Functor, Monad, MonadFail)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user