1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00

Remove some more parens.

This commit is contained in:
Rob Rix 2016-02-28 22:32:27 -05:00
parent fdd3234c44
commit c8166041ef

View File

@ -94,7 +94,7 @@ splitAnnotatedByLines sources ranges categories syntax = case syntax of
(Free (Annotated (Info range _) _)) -> range
getRange (Left range) = range
childRows :: (Has f) => ([Row (Either Range (f (SplitDiff leaf Info)))], (Int, Int)) -> f (Diff leaf Info) -> ([Row (Either Range (f (SplitDiff leaf Info)))], (Int, Int))
childRows :: Has f => ([Row (Either Range (f (SplitDiff leaf Info)))], (Int, Int)) -> f (Diff leaf Info) -> ([Row (Either Range (f (SplitDiff leaf Info)))], (Int, Int))
childRows (rows, previous) child = let (childRows, childRanges) = splitDiffByLines (get child) previous sources in
(adjoin $ rows ++ (fmap Left <$> contextRows (makeRanges previous (start <$> childRanges)) sources) ++ (fmap (Right . (<$ child)) <$> childRows), runBoth $ end <$> childRanges)