mirror of
https://github.com/github/semantic.git
synced 2024-12-01 17:59:10 +03:00
Serialize Kind to JSON as a String.
This commit is contained in:
parent
62e682bdbe
commit
5b8ff5d50b
@ -36,7 +36,9 @@ data Kind
|
||||
| Call
|
||||
deriving (Bounded, Enum, Eq, Generic, Show)
|
||||
|
||||
instance ToJSON Kind
|
||||
instance ToJSON Kind where
|
||||
toJSON = toJSON . show
|
||||
toEncoding = toEncoding . show
|
||||
|
||||
|
||||
newtype Python a = Python { getPython :: Python.Module a }
|
||||
|
Loading…
Reference in New Issue
Block a user