mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Fix a couple of instances.
This commit is contained in:
parent
c04c59d772
commit
38215571c1
@ -35,7 +35,7 @@ instance ToJSON Ref where
|
||||
, "span" .= span
|
||||
]
|
||||
|
||||
instance ToJSON (Decl Name) where
|
||||
instance ToJSON Decl where
|
||||
toJSON Decl{declSymbol, declPath, declSpan} = object
|
||||
[ "kind" .= ("decl" :: Text)
|
||||
, "symbol" .= declSymbol
|
||||
@ -43,5 +43,5 @@ instance ToJSON (Decl Name) where
|
||||
, "span" .= declSpan
|
||||
]
|
||||
|
||||
instance ToJSON (ScopeGraph Name) where
|
||||
instance ToJSON ScopeGraph where
|
||||
toJSON (ScopeGraph sc) = toJSON . Map.mapKeys declSymbol $ sc
|
||||
|
Loading…
Reference in New Issue
Block a user