1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 00:42:33 +03:00

Not needed

This commit is contained in:
Timothy Clem 2018-08-30 11:45:24 -07:00
parent a34cb2694c
commit bec7e0ea88

View File

@ -44,9 +44,6 @@ instance ToJSON JSONStat where
toJSON JSONStat{..} = object ("path" .= pathKeyForBlobPair jsonStatBlobs : toJSONFields (these Delete Insert Replace (runJoin jsonStatBlobs)))
toEncoding JSONStat{..} = pairs (fold ("path" .= pathKeyForBlobPair jsonStatBlobs : toJSONFields (these Delete Insert Replace (runJoin jsonStatBlobs))))
newtype JSONError = JSONError { jsonError :: String }
deriving (Eq, Show)
-- | Render a term to a value representing its JSON.
renderJSONTerm :: ToJSON a => Blob -> a -> JSON "trees" SomeJSON
renderJSONTerm blob content = JSON [ SomeJSON (JSONTerm blob content) ]