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:
parent
c246b08cf4
commit
bc57f7f871
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user