1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 04:41:47 +03:00
This commit is contained in:
Rob Rix 2016-08-18 12:31:46 -04:00
parent 768703dc7e
commit ffad7170f0

View File

@ -67,6 +67,7 @@ rws compare as bs
insertion previous unmappedA unmappedB kv@(UnmappedTerm _ _ b) = do
put (previous, unmappedA, List.delete kv unmappedB)
pure (negate 1, inserting b)
deleteRemaining diffs (_, unmappedA, _) = foldl' (flip (List.insertBy (comparing fst))) diffs ((termIndex &&& deleting . term) <$> unmappedA)
diffCostOfMaybes :: (Prologue.Foldable f, Functor f) => Free (CofreeF f (Both annotation)) (Maybe (Patch (Cofree f annotation))) -> Int