1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Apparently this got swapped again or something?

This commit is contained in:
Rob Rix 2016-08-02 12:13:52 -04:00
parent fc51f7ec90
commit a0b41083ab

View File

@ -50,7 +50,7 @@ diffFiles parser renderer sourceBlobs = do
(_, _) -> (_, _) ->
runBothWith (diffTerms construct compareCategoryEq diffCostWithCachedTermCosts) terms runBothWith (diffTerms construct compareCategoryEq diffCostWithCachedTermCosts) terms
pure $! renderer textDiff sourceBlobs pure $! renderer sourceBlobs textDiff
where construct (info :< syntax) = free (Free ((setCost <$> info <*> sumCost syntax) :< syntax)) where construct (info :< syntax) = free (Free ((setCost <$> info <*> sumCost syntax) :< syntax))
sumCost = fmap getSum . foldMap (fmap Sum . getCost) sumCost = fmap getSum . foldMap (fmap Sum . getCost)