Fix WhoReply aeson parsing

This commit is contained in:
Joscha 2018-02-25 21:52:41 +00:00
parent ca3abbd93d
commit 01454fe6d1

View file

@ -730,4 +730,6 @@ newtype WhoReply = WhoReply
} deriving (Show) } deriving (Show)
instance FromJSON WhoReply where instance FromJSON WhoReply where
parseJSON v = WhoReply <$> parseJSON v parseJSON = withObject "WhoReply" $ \o -> do
listing <- o .: "listing"
return (WhoReply listing)