mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
🔥 alignRows again.
This commit is contained in:
parent
aa36f83da3
commit
34a76bfe93
@ -110,7 +110,3 @@ openRange source range = (at source <$> maybeLastIndex range) /= Just '\n'
|
||||
|
||||
-- | A row in a split diff, composed of a before line and an after line.
|
||||
type Row a = Both (Line a)
|
||||
|
||||
-- | Align Both containers of lines into a container of Both lines, filling any gaps with empty rows which are either open or closed to match the opposite side.
|
||||
alignRows :: Align f => Both (f (Line a)) -> f (Both (Line a))
|
||||
alignRows = runBothWith (alignWith (bothOfThese (pure $ Line [])))
|
||||
|
Loading…
Reference in New Issue
Block a user