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:
parent
fc51f7ec90
commit
a0b41083ab
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user