Fix WhoReply aeson parsing
This commit is contained in:
parent
ca3abbd93d
commit
01454fe6d1
1 changed files with 3 additions and 1 deletions
|
|
@ -730,4 +730,6 @@ newtype WhoReply = WhoReply
|
|||
} deriving (Show)
|
||||
|
||||
instance FromJSON WhoReply where
|
||||
parseJSON v = WhoReply <$> parseJSON v
|
||||
parseJSON = withObject "WhoReply" $ \o -> do
|
||||
listing <- o .: "listing"
|
||||
return (WhoReply listing)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue