1
1
mirror of https://github.com/github/semantic.git synced 2024-12-28 09:21:35 +03:00

Abstract JSON over a type variable.

This commit is contained in:
Rob Rix 2016-02-25 16:00:09 -07:00
parent 2da6a3527b
commit 79c7fdecda

View File

@ -9,7 +9,7 @@ import Renderer
import Renderer.Split
-- | JSON representing an aligned diff.
data JSON = JSON { rows :: [Row (SplitDiff (Source Char) Info)] }
data JSON a = JSON { rows :: [Row (SplitDiff a Info)] }
json :: Renderer a String
json diff sources = ""