{"action":"created","comment":{"url":"https://api.github.com/repos/brendanhay/amazonka/pulls/comments/44210992","id":44210992,"diff_hunk":"@@ -4,6 +4,7 @@\n {-# LANGUAGE LambdaCase          #-}\n {-# LANGUAGE OverloadedStrings   #-}\n {-# LANGUAGE ScopedTypeVariables #-}\n+{-# LANGUAGE TupleSections       #-}","path":"core/src/Network/AWS/Data/XML.hs","position":4,"original_position":4,"commit_id":"f8f381965f5d6123dc4fa96bd734a91cc0b5e36d","original_commit_id":"f8f381965f5d6123dc4fa96bd734a91cc0b5e36d","user":{"login":"fmap","id":5616380,"avatar_url":"https://avatars.githubusercontent.com/u/5616380?v=3","gravatar_id":"","url":"https://api.github.com/users/fmap","html_url":"https://github.com/fmap","followers_url":"https://api.github.com/users/fmap/followers","following_url":"https://api.github.com/users/fmap/following{/other_user}","gists_url":"https://api.github.com/users/fmap/gists{/gist_id}","starred_url":"https://api.github.com/users/fmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmap/subscriptions","organizations_url":"https://api.github.com/users/fmap/orgs","repos_url":"https://api.github.com/users/fmap/repos","events_url":"https://api.github.com/users/fmap/events{/privacy}","received_events_url":"https://api.github.com/users/fmap/received_events","type":"User","site_admin":false},"body":"Likewise.","created_at":"2015-11-07T10:41:41Z","updated_at":"2015-11-07T10:41:41Z","html_url":"https://github.com/brendanhay/amazonka/pull/246#discussion_r44210992","pull_request_url":"https://api.github.com/repos/brendanhay/amazonka/pulls/246","_links":{"self":{"href":"https://api.github.com/repos/brendanhay/amazonka/pulls/comments/44210992"},"html":{"href":"https://github.com/brendanhay/amazonka/pull/246#discussion_r44210992"},"pull_request":{"href":"https://api.github.com/repos/brendanhay/amazonka/pulls/246"}}},"pull_request":{"url":"https://api.github.com/repos/brendanhay/amazonka/pulls/246","id":50033135,"html_url":"https://github.com/brendanhay/amazonka/pull/246","diff_url":"https://github.com/brendanhay/amazonka/pull/246.diff","patch_url":"https://github.com/brendanhay/amazonka/pull/246.patch","issue_url":"https://api.github.com/repos/brendanhay/amazonka/issues/246","number":246,"state":"open","locked":false,"title":"Conditional ToElement Serialisation for Root XML Elements","user":{"login":"brendanhay","id":4493,"avatar_url":"https://avatars.githubusercontent.com/u/4493?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanhay","html_url":"https://github.com/brendanhay","followers_url":"https://api.github.com/users/brendanhay/followers","following_url":"https://api.github.com/users/brendanhay/following{/other_user}","gists_url":"https://api.github.com/users/brendanhay/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanhay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanhay/subscriptions","organizations_url":"https://api.github.com/users/brendanhay/orgs","repos_url":"https://api.github.com/users/brendanhay/repos","events_url":"https://api.github.com/users/brendanhay/events{/privacy}","received_events_url":"https://api.github.com/users/brendanhay/received_events","type":"User","site_admin":false},"body":"This provides a fix for request types such as `PutObjectACL`, which are `PUT` or `POST` requests containing an optional request body. If the field to be serialised in the body results in an empty body, previously an empty root element would be sent resulting in an `UnexpectedContent` error.\r\n\r\nThis fix ensures the request body will no longer be sent unless the field is actual set via the appropriate lens.\r\n\r\nFixes #241.","created_at":"2015-11-07T10:26:31Z","updated_at":"2015-11-07T10:41:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d7a991a6efd822e6af47a4c53c7067ac18e4152","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brendanhay/amazonka/pulls/246/commits","review_comments_url":"https://api.github.com/repos/brendanhay/amazonka/pulls/246/comments","review_comment_url":"https://api.github.com/repos/brendanhay/amazonka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brendanhay/amazonka/issues/246/comments","statuses_url":"https://api.github.com/repos/brendanhay/amazonka/statuses/f8f381965f5d6123dc4fa96bd734a91cc0b5e36d","head":{"label":"brendanhay:feature/issue-241","ref":"feature/issue-241","sha":"f8f381965f5d6123dc4fa96bd734a91cc0b5e36d","user":{"login":"brendanhay","id":4493,"avatar_url":"https://avatars.githubusercontent.com/u/4493?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanhay","html_url":"https://github.com/brendanhay","followers_url":"https://api.github.com/users/brendanhay/followers","following_url":"https://api.github.com/users/brendanhay/following{/other_user}","gists_url":"https://api.github.com/users/brendanhay/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanhay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanhay/subscriptions","organizations_url":"https://api.github.com/users/brendanhay/orgs","repos_url":"https://api.github.com/users/brendanhay/repos","events_url":"https://api.github.com/users/brendanhay/events{/privacy}","received_events_url":"https://api.github.com/users/brendanhay/received_events","type":"User","site_admin":false},"repo":{"id":11859481,"name":"amazonka","full_name":"brendanhay/amazonka","owner":{"login":"brendanhay","id":4493,"avatar_url":"https://avatars.githubusercontent.com/u/4493?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanhay","html_url":"https://github.com/brendanhay","followers_url":"https://api.github.com/users/brendanhay/followers","following_url":"https://api.github.com/users/brendanhay/following{/other_user}","gists_url":"https://api.github.com/users/brendanhay/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanhay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanhay/subscriptions","organizations_url":"https://api.github.com/users/brendanhay/orgs","repos_url":"https://api.github.com/users/brendanhay/repos","events_url":"https://api.github.com/users/brendanhay/events{/privacy}","received_events_url":"https://api.github.com/users/brendanhay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brendanhay/amazonka","description":"A comprehensive Amazon Web Services SDK for Haskell.","fork":false,"url":"https://api.github.com/repos/brendanhay/amazonka","forks_url":"https://api.github.com/repos/brendanhay/amazonka/forks","keys_url":"https://api.github.com/repos/brendanhay/amazonka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brendanhay/amazonka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brendanhay/amazonka/teams","hooks_url":"https://api.github.com/repos/brendanhay/amazonka/hooks","issue_events_url":"https://api.github.com/repos/brendanhay/amazonka/issues/events{/number}","events_url":"https://api.github.com/repos/brendanhay/amazonka/events","assignees_url":"https://api.github.com/repos/brendanhay/amazonka/assignees{/user}","branches_url":"https://api.github.com/repos/brendanhay/amazonka/branches{/branch}","tags_url":"https://api.github.com/repos/brendanhay/amazonka/tags","blobs_url":"https://api.github.com/repos/brendanhay/amazonka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brendanhay/amazonka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brendanhay/amazonka/git/refs{/sha}","trees_url":"https://api.github.com/repos/brendanhay/amazonka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brendanhay/amazonka/statuses/{sha}","languages_url":"https://api.github.com/repos/brendanhay/amazonka/languages","stargazers_url":"https://api.github.com/repos/brendanhay/amazonka/stargazers","contributors_url":"https://api.github.com/repos/brendanhay/amazonka/contributors","subscribers_url":"https://api.github.com/repos/brendanhay/amazonka/subscribers","subscription_url":"https://api.github.com/repos/brendanhay/amazonka/subscription","commits_url":"https://api.github.com/repos/brendanhay/amazonka/commits{/sha}","git_commits_url":"https://api.github.com/repos/brendanhay/amazonka/git/commits{/sha}","comments_url":"https://api.github.com/repos/brendanhay/amazonka/comments{/number}","issue_comment_url":"https://api.github.com/repos/brendanhay/amazonka/issues/comments{/number}","contents_url":"https://api.github.com/repos/brendanhay/amazonka/contents/{+path}","compare_url":"https://api.github.com/repos/brendanhay/amazonka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brendanhay/amazonka/merges","archive_url":"https://api.github.com/repos/brendanhay/amazonka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brendanhay/amazonka/downloads","issues_url":"https://api.github.com/repos/brendanhay/amazonka/issues{/number}","pulls_url":"https://api.github.com/repos/brendanhay/amazonka/pulls{/number}","milestones_url":"https://api.github.com/repos/brendanhay/amazonka/milestones{/number}","notifications_url":"https://api.github.com/repos/brendanhay/amazonka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brendanhay/amazonka/labels{/name}","releases_url":"https://api.github.com/repos/brendanhay/amazonka/releases{/id}","created_at":"2013-08-03T07:08:22Z","updated_at":"2015-11-06T19:19:47Z","pushed_at":"2015-11-07T10:26:32Z","git_url":"git://github.com/brendanhay/amazonka.git","ssh_url":"git@github.com:brendanhay/amazonka.git","clone_url":"https://github.com/brendanhay/amazonka.git","svn_url":"https://github.com/brendanhay/amazonka","homepage":"http://brendanhay.nz/amazonka-doc","size":123845,"stargazers_count":99,"watchers_count":99,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":19,"mirror_url":null,"open_issues_count":15,"forks":19,"open_issues":15,"watchers":99,"default_branch":"develop"}},"base":{"label":"brendanhay:develop","ref":"develop","sha":"694fc9786ea1765733a224b95f5eaf79646d53f6","user":{"login":"brendanhay","id":4493,"avatar_url":"https://avatars.githubusercontent.com/u/4493?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanhay","html_url":"https://github.com/brendanhay","followers_url":"https://api.github.com/users/brendanhay/followers","following_url":"https://api.github.com/users/brendanhay/following{/other_user}","gists_url":"https://api.github.com/users/brendanhay/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanhay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanhay/subscriptions","organizations_url":"https://api.github.com/users/brendanhay/orgs","repos_url":"https://api.github.com/users/brendanhay/repos","events_url":"https://api.github.com/users/brendanhay/events{/privacy}","received_events_url":"https://api.github.com/users/brendanhay/received_events","type":"User","site_admin":false},"repo":{"id":11859481,"name":"amazonka","full_name":"brendanhay/amazonka","owner":{"login":"brendanhay","id":4493,"avatar_url":"https://avatars.githubusercontent.com/u/4493?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanhay","html_url":"https://github.com/brendanhay","followers_url":"https://api.github.com/users/brendanhay/followers","following_url":"https://api.github.com/users/brendanhay/following{/other_user}","gists_url":"https://api.github.com/users/brendanhay/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanhay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanhay/subscriptions","organizations_url":"https://api.github.com/users/brendanhay/orgs","repos_url":"https://api.github.com/users/brendanhay/repos","events_url":"https://api.github.com/users/brendanhay/events{/privacy}","received_events_url":"https://api.github.com/users/brendanhay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brendanhay/amazonka","description":"A comprehensive Amazon Web Services SDK for Haskell.","fork":false,"url":"https://api.github.com/repos/brendanhay/amazonka","forks_url":"https://api.github.com/repos/brendanhay/amazonka/forks","keys_url":"https://api.github.com/repos/brendanhay/amazonka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brendanhay/amazonka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brendanhay/amazonka/teams","hooks_url":"https://api.github.com/repos/brendanhay/amazonka/hooks","issue_events_url":"https://api.github.com/repos/brendanhay/amazonka/issues/events{/number}","events_url":"https://api.github.com/repos/brendanhay/amazonka/events","assignees_url":"https://api.github.com/repos/brendanhay/amazonka/assignees{/user}","branches_url":"https://api.github.com/repos/brendanhay/amazonka/branches{/branch}","tags_url":"https://api.github.com/repos/brendanhay/amazonka/tags","blobs_url":"https://api.github.com/repos/brendanhay/amazonka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brendanhay/amazonka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brendanhay/amazonka/git/refs{/sha}","trees_url":"https://api.github.com/repos/brendanhay/amazonka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brendanhay/amazonka/statuses/{sha}","languages_url":"https://api.github.com/repos/brendanhay/amazonka/languages","stargazers_url":"https://api.github.com/repos/brendanhay/amazonka/stargazers","contributors_url":"https://api.github.com/repos/brendanhay/amazonka/contributors","subscribers_url":"https://api.github.com/repos/brendanhay/amazonka/subscribers","subscription_url":"https://api.github.com/repos/brendanhay/amazonka/subscription","commits_url":"https://api.github.com/repos/brendanhay/amazonka/commits{/sha}","git_commits_url":"https://api.github.com/repos/brendanhay/amazonka/git/commits{/sha}","comments_url":"https://api.github.com/repos/brendanhay/amazonka/comments{/number}","issue_comment_url":"https://api.github.com/repos/brendanhay/amazonka/issues/comments{/number}","contents_url":"https://api.github.com/repos/brendanhay/amazonka/contents/{+path}","compare_url":"https://api.github.com/repos/brendanhay/amazonka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brendanhay/amazonka/merges","archive_url":"https://api.github.com/repos/brendanhay/amazonka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brendanhay/amazonka/downloads","issues_url":"https://api.github.com/repos/brendanhay/amazonka/issues{/number}","pulls_url":"https://api.github.com/repos/brendanhay/amazonka/pulls{/number}","milestones_url":"https://api.github.com/repos/brendanhay/amazonka/milestones{/number}","notifications_url":"https://api.github.com/repos/brendanhay/amazonka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brendanhay/amazonka/labels{/name}","releases_url":"https://api.github.com/repos/brendanhay/amazonka/releases{/id}","created_at":"2013-08-03T07:08:22Z","updated_at":"2015-11-06T19:19:47Z","pushed_at":"2015-11-07T10:26:32Z","git_url":"git://github.com/brendanhay/amazonka.git","ssh_url":"git@github.com:brendanhay/amazonka.git","clone_url":"https://github.com/brendanhay/amazonka.git","svn_url":"https://github.com/brendanhay/amazonka","homepage":"http://brendanhay.nz/amazonka-doc","size":123845,"stargazers_count":99,"watchers_count":99,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":19,"mirror_url":null,"open_issues_count":15,"forks":19,"open_issues":15,"watchers":99,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/brendanhay/amazonka/pulls/246"},"html":{"href":"https://github.com/brendanhay/amazonka/pull/246"},"issue":{"href":"https://api.github.com/repos/brendanhay/amazonka/issues/246"},"comments":{"href":"https://api.github.com/repos/brendanhay/amazonka/issues/246/comments"},"review_comments":{"href":"https://api.github.com/repos/brendanhay/amazonka/pulls/246/comments"},"review_comment":{"href":"https://api.github.com/repos/brendanhay/amazonka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brendanhay/amazonka/pulls/246/commits"},"statuses":{"href":"https://api.github.com/repos/brendanhay/amazonka/statuses/f8f381965f5d6123dc4fa96bd734a91cc0b5e36d"}}}}