Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc30411 commit 11e8fc3Copy full SHA for 11e8fc3
src/GitHub/Data/Repos.hs
@@ -250,6 +250,9 @@ instance FromJSON Contributor where
250
instance FromJSON Language where
251
parseJSON = withText "Language" (pure . Language)
252
253
+instance ToJSON Language where
254
+ toJSON = toJSON . getLanguage
255
+
256
instance FromJSON a => FromJSON (HM.HashMap Language a) where
257
parseJSON = fmap mapKeyLanguage . parseJSON
258
where
0 commit comments