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

Stub in showing info & syntax.

This commit is contained in:
Rob Rix 2016-02-25 16:28:36 -07:00
parent 1e07c5f7e0
commit 0b1bec523f

View File

@ -9,6 +9,7 @@ import Row
import Renderer
import Renderer.Split
import Source hiding ((++), toList)
import Control.Comonad.Cofree
import Control.Monad.Free
import Data.Foldable
@ -29,4 +30,5 @@ instance Show (JSON a) where
showPatch (SplitInsert term) = "{'insert':" ++ showTerm term ++ "}"
showPatch (SplitDelete term) = "{'delete':" ++ showTerm term ++ "}"
showPatch (SplitReplace term) = "{'replace':" ++ showTerm term ++ "}"
showTerm term = "{}"
showTerm (info :< syntax) = showInfoSyntax info syntax
showInfoSyntax info syntax = "{}"