1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 00:44:57 +03:00

Stub in rendering of rows.

This commit is contained in:
Rob Rix 2016-02-25 16:03:34 -07:00
parent e33cb1168e
commit 6d56fabcbf

View File

@ -15,4 +15,5 @@ json :: Renderer a String
json diff (a, b) = show . JSON . fst $ splitDiffByLines diff (0, 0) (source a, source b)
instance Show (JSON a) where
show (JSON _) = "{" ++ "'rows':" ++ "[" ++ "]" ++ "}"
show (JSON rows) = "{'rows':[" ++ mconcat (showRow <$> rows) ++ "]}"
where showRow (Row left right) = "{'left':{},'right':{}}"