mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Rename the parameter.
This commit is contained in:
parent
49f477f5b0
commit
88beca1557
@ -91,6 +91,6 @@ diffCostWithCachedTermSizes = diffSum (getSum . foldMap (Sum . size . extract))
|
||||
|
||||
-- | The absolute difference between the node counts of a diff.
|
||||
diffCostWithAbsoluteDifferenceOfCachedDiffSizes :: Diff a Info -> Rational
|
||||
diffCostWithAbsoluteDifferenceOfCachedDiffSizes term = case runFree term of
|
||||
diffCostWithAbsoluteDifferenceOfCachedDiffSizes diff = case runFree diff of
|
||||
Free (Join (before, after) :< _) -> abs $ size before - size after
|
||||
Pure patch -> sum $ size . extract <$> patch
|
||||
|
Loading…
Reference in New Issue
Block a user