Skip to content

Commit

Permalink
Fix bug in message sender json parsing
Browse files Browse the repository at this point in the history
The order is wrong. This goes to show that my current manual `FromJSON`
parsing scheme isn't very maintainable. This also bumps version to
0.3.0.2
  • Loading branch information
yamadapc committed Oct 16, 2014
1 parent 0d3f302 commit 1640ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hzulip.cabal
@@ -1,5 +1,5 @@
name: hzulip
version: 0.3.0.1
version: 0.3.0.2
synopsis: A haskell wrapper for the Zulip API.
description: This a Zulip API wrapper for Haskell.
homepage: https://github.com/yamadapc/hzulip
Expand Down
2 changes: 1 addition & 1 deletion src/HZulip/Types.hs
Expand Up @@ -99,8 +99,8 @@ instance FromJSON Message where
(User <$>
o .: "sender_id" <*>
o .: "sender_full_name" <*>
o .: "sender_domain" <*>
o .: "sender_email" <*>
o .: "sender_domain" <*>
o .: "sender_short_name"
) <*>

Expand Down

0 comments on commit 1640ab7

Please sign in to comment.