mirror of
https://github.com/github/semantic.git
synced 2024-12-27 17:05:33 +03:00
Stub in rendering of rows.
This commit is contained in:
parent
e33cb1168e
commit
6d56fabcbf
@ -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':{}}"
|
||||
|
Loading…
Reference in New Issue
Block a user