1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Rename straightToSplit to diffToRows.

This commit is contained in:
Rob Rix 2015-12-03 10:07:26 -05:00
parent 485959b135
commit 6a05ca0b25

View File

@ -26,8 +26,8 @@ split _ _ _ = return mempty
data Row = Row (Maybe HTML) (Maybe HTML)
straightToSplit :: Diff a Info -> String -> String -> [Row]
straightToSplit (Free (Annotated (left, right) syntax)) = freeSyntaxToSplit (left, right) syntax
diffToRows :: Diff a Info -> String -> String -> [Row]
diffToRows (Free (Annotated (left, right) syntax)) = freeSyntaxToSplit (left, right) syntax
freeSyntaxToSplit :: (Info, Info) -> Syntax a (Diff a Info) -> String -> String -> [Row]
freeSyntaxToSplit (left, right) (Leaf _) before after = []