{"action":"created","issue":{"url":"https://api.github.com/repos/yesodweb/persistent/issues/412","repository_url":"https://api.github.com/repos/yesodweb/persistent","labels_url":"https://api.github.com/repos/yesodweb/persistent/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/yesodweb/persistent/issues/412/comments","events_url":"https://api.github.com/repos/yesodweb/persistent/issues/412/events","html_url":"https://github.com/yesodweb/persistent/issues/412","id":92713134,"number":412,"title":"7.10 regression: deriving JSON instances with a reserved word breaks things","user":{"login":"jb55","id":45598,"avatar_url":"https://avatars.githubusercontent.com/u/45598?v=3","gravatar_id":"","url":"https://api.github.com/users/jb55","html_url":"https://github.com/jb55","followers_url":"https://api.github.com/users/jb55/followers","following_url":"https://api.github.com/users/jb55/following{/other_user}","gists_url":"https://api.github.com/users/jb55/gists{/gist_id}","starred_url":"https://api.github.com/users/jb55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jb55/subscriptions","organizations_url":"https://api.github.com/users/jb55/orgs","repos_url":"https://api.github.com/users/jb55/repos","events_url":"https://api.github.com/users/jb55/events{/privacy}","received_events_url":"https://api.github.com/users/jb55/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-07-02T19:15:42Z","updated_at":"2016-05-07T23:24:51Z","closed_at":"2016-04-11T02:27:02Z","body":"tested on: persistent-2.2\r\n\r\n```\r\nsrc/Payout/Data/User/Types.hs:19:1:\r\n    Illegal variable name: ‘type’\r\n    When splicing a TH declaration:\r\n      instance Data.Aeson.Types.Class.ToJSON User\r\n    where Data.Aeson.Types.Class.toJSON (User name_0\r\n                                              realName_1\r\n                                              email_2\r\n                                              contactEmail_3\r\n                                              channelNames_4\r\n                                              type_5\r\n                                              share_6\r\n                                              paypalEmail_7\r\n                                              labelName_8\r\n                                              labelCommission_9\r\n                                              claimIds_10) = Data.Aeson.Types.Internal.object [Data.Text.pack \"name\" Data.Aeson.Types.Instances..= name_0,\r\n                                                                                               Data.Text.pack \"realName\" Data.Aeson.Types.Instances..= realName_1,\r\n                                                                                               Data.Text.pack \"email\" Data.Aeson.Types.Instances..= email_2,\r\n                                                                                               Data.Text.pack \"contactEmail\" Data.Aeson.Types.Instances..= contactEmail_3,\r\n                                                                                               Data.Text.pack \"channelNames\" Data.Aeson.Types.Instances..= channelNames_4,\r\n                                                                                               Data.Text.pack \"type\" Data.Aeson.Types.Instances..= type_5,\r\n                                                                                               Data.Text.pack \"share\" Data.Aeson.Types.Instances..= share_6,\r\n                                                                                               Data.Text.pack \"paypalEmail\" Data.Aeson.Types.Instances..= paypalEmail_7,\r\n                                                                                               Data.Text.pack \"labelName\" Data.Aeson.Types.Instances..= labelName_8,\r\n                                                                                               Data.Text.pack \"labelCommission\" Data.Aeson.Types.Instances..= labelCommission_9,\r\n                                                                                               Data.Text.pack \"claimIds\" Data.Aeson.Types.Instances..= claimIds_10]\r\n```\r\n\r\nTurning off the `json` attribute seems to work fine so I assume it's just an issue with JSON instance deriving. I don't get this error on 7.8.4"},"comment":{"url":"https://api.github.com/repos/yesodweb/persistent/issues/comments/217676432","html_url":"https://github.com/yesodweb/persistent/issues/412#issuecomment-217676432","issue_url":"https://api.github.com/repos/yesodweb/persistent/issues/412","id":217676432,"user":{"login":"Tritlo","id":1667287,"avatar_url":"https://avatars.githubusercontent.com/u/1667287?v=3","gravatar_id":"","url":"https://api.github.com/users/Tritlo","html_url":"https://github.com/Tritlo","followers_url":"https://api.github.com/users/Tritlo/followers","following_url":"https://api.github.com/users/Tritlo/following{/other_user}","gists_url":"https://api.github.com/users/Tritlo/gists{/gist_id}","starred_url":"https://api.github.com/users/Tritlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tritlo/subscriptions","organizations_url":"https://api.github.com/users/Tritlo/orgs","repos_url":"https://api.github.com/users/Tritlo/repos","events_url":"https://api.github.com/users/Tritlo/events{/privacy}","received_events_url":"https://api.github.com/users/Tritlo/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T23:24:51Z","updated_at":"2016-05-07T23:24:51Z","body":"Great! When will the release show up on hackage?"}}