1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Simplify Row to two HTML elements.

This commit is contained in:
Rob Rix 2015-12-03 10:05:18 -05:00
parent c246b08cf4
commit bc57f7f871

View File

@ -24,11 +24,7 @@ data HTML =
split :: Diff a Info -> String -> String -> IO ByteString
split _ _ _ = return mempty
data Row =
ContextRow HTML HTML
| ReplaceRow HTML HTML
| InsertRow HTML
| DeleteRow HTML
data Row = Row (Maybe HTML, Maybe HTML)
straightToSplit :: Diff a Info -> String -> String -> [Row]
straightToSplit (Free (Annotated (left, right) syntax)) = freeSyntaxToSplit (left, right) syntax