1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Generalize hasChanges to arbitrary annotations.

This commit is contained in:
Rob Rix 2016-06-17 14:05:38 -04:00
parent 03b8076f03
commit 0969e20f39

View File

@ -39,7 +39,7 @@ numberedRows = countUp (both 1 1)
nextLineNumbers from row = modifyJoin (fromThese identity identity) (succ <$ row) <*> from
-- | Determine whether a line contains any patches.
hasChanges :: SplitDiff leaf Info -> Bool
hasChanges :: SplitDiff leaf annotation -> Bool
hasChanges = or . (True <$)
-- | Align a Diff into a list of Join These SplitDiffs representing the (possibly blank) lines on either side.