mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +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
|
||||
|
||||
|
||||
-- | 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 }
|
||||
deriving (Applicative, Functor, Monad, MonadFail)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user