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:
parent
03b8076f03
commit
0969e20f39
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user