1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 11:02:26 +03:00

Serialize Kind to JSON as a String.

This commit is contained in:
Rob Rix 2019-09-18 18:49:25 -04:00
parent 62e682bdbe
commit 5b8ff5d50b
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -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 }