mirror of
https://github.com/github/semantic.git
synced 2024-12-27 17:05:33 +03:00
Stub in showing info & syntax.
This commit is contained in:
parent
1e07c5f7e0
commit
0b1bec523f
@ -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 = "{}"
|
||||
|
Loading…
Reference in New Issue
Block a user