{"action":"closed","number":19,"pull_request":{"url":"https://api.github.com/repos/adinapoli/mandrill/pulls/19","id":41970571,"html_url":"https://github.com/adinapoli/mandrill/pull/19","diff_url":"https://github.com/adinapoli/mandrill/pull/19.diff","patch_url":"https://github.com/adinapoli/mandrill/pull/19.patch","issue_url":"https://api.github.com/repos/adinapoli/mandrill/issues/19","number":19,"state":"closed","locked":false,"title":"Introduce the `MandrillEmail` to prevent orphans.","user":{"login":"adinapoli","id":442035,"avatar_url":"https://avatars.githubusercontent.com/u/442035?v=3","gravatar_id":"","url":"https://api.github.com/users/adinapoli","html_url":"https://github.com/adinapoli","followers_url":"https://api.github.com/users/adinapoli/followers","following_url":"https://api.github.com/users/adinapoli/following{/other_user}","gists_url":"https://api.github.com/users/adinapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/adinapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adinapoli/subscriptions","organizations_url":"https://api.github.com/users/adinapoli/orgs","repos_url":"https://api.github.com/users/adinapoli/repos","events_url":"https://api.github.com/users/adinapoli/events{/privacy}","received_events_url":"https://api.github.com/users/adinapoli/received_events","type":"User","site_admin":false},"body":"This commit introduces a newtype wrapper called `MandrillEmail` to wrap\r\nthe internal `EmailAddress` and thus avoid the need for a\r\nToJSON/FromJSON orphan instances.\r\n\r\nDespite the newtype introduction the API should not break for the end\r\nuser, provided he created the `MandrillRecipient` via the smart\r\nconstructor, and he's not poking around with the `MandrillMessage`. We\r\nshould probably avoid exporting the entire Types.hs module, but only\r\ntypes & smart constructors (and lenses!) but that is out of the scope of\r\nthis PR.\r\n\r\nAs low hanging fruit, I have ported the project to stack.\r\n\r\n@gregwebs Are you cool with me merging? I will release the new Mandrill\r\nupstream on Hackage soon afterwards.","created_at":"2015-08-09T13:41:27Z","updated_at":"2015-08-09T18:19:26Z","closed_at":"2015-08-09T18:19:26Z","merged_at":"2015-08-09T18:19:26Z","merge_commit_sha":"40c81b05f78139a0353bf0589a181ae9b7fa6010","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/adinapoli/mandrill/pulls/19/commits","review_comments_url":"https://api.github.com/repos/adinapoli/mandrill/pulls/19/comments","review_comment_url":"https://api.github.com/repos/adinapoli/mandrill/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adinapoli/mandrill/issues/19/comments","statuses_url":"https://api.github.com/repos/adinapoli/mandrill/statuses/01dcf4d5427fd80a50ad413d579ca29760aa526f","head":{"label":"adinapoli:issue-18","ref":"issue-18","sha":"01dcf4d5427fd80a50ad413d579ca29760aa526f","user":{"login":"adinapoli","id":442035,"avatar_url":"https://avatars.githubusercontent.com/u/442035?v=3","gravatar_id":"","url":"https://api.github.com/users/adinapoli","html_url":"https://github.com/adinapoli","followers_url":"https://api.github.com/users/adinapoli/followers","following_url":"https://api.github.com/users/adinapoli/following{/other_user}","gists_url":"https://api.github.com/users/adinapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/adinapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adinapoli/subscriptions","organizations_url":"https://api.github.com/users/adinapoli/orgs","repos_url":"https://api.github.com/users/adinapoli/repos","events_url":"https://api.github.com/users/adinapoli/events{/privacy}","received_events_url":"https://api.github.com/users/adinapoli/received_events","type":"User","site_admin":false},"repo":{"id":22893958,"name":"mandrill","full_name":"adinapoli/mandrill","owner":{"login":"adinapoli","id":442035,"avatar_url":"https://avatars.githubusercontent.com/u/442035?v=3","gravatar_id":"","url":"https://api.github.com/users/adinapoli","html_url":"https://github.com/adinapoli","followers_url":"https://api.github.com/users/adinapoli/followers","following_url":"https://api.github.com/users/adinapoli/following{/other_user}","gists_url":"https://api.github.com/users/adinapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/adinapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adinapoli/subscriptions","organizations_url":"https://api.github.com/users/adinapoli/orgs","repos_url":"https://api.github.com/users/adinapoli/repos","events_url":"https://api.github.com/users/adinapoli/events{/privacy}","received_events_url":"https://api.github.com/users/adinapoli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adinapoli/mandrill","description":"Pure Haskell client for the Mandrill JSON API","fork":false,"url":"https://api.github.com/repos/adinapoli/mandrill","forks_url":"https://api.github.com/repos/adinapoli/mandrill/forks","keys_url":"https://api.github.com/repos/adinapoli/mandrill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adinapoli/mandrill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adinapoli/mandrill/teams","hooks_url":"https://api.github.com/repos/adinapoli/mandrill/hooks","issue_events_url":"https://api.github.com/repos/adinapoli/mandrill/issues/events{/number}","events_url":"https://api.github.com/repos/adinapoli/mandrill/events","assignees_url":"https://api.github.com/repos/adinapoli/mandrill/assignees{/user}","branches_url":"https://api.github.com/repos/adinapoli/mandrill/branches{/branch}","tags_url":"https://api.github.com/repos/adinapoli/mandrill/tags","blobs_url":"https://api.github.com/repos/adinapoli/mandrill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adinapoli/mandrill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adinapoli/mandrill/git/refs{/sha}","trees_url":"https://api.github.com/repos/adinapoli/mandrill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adinapoli/mandrill/statuses/{sha}","languages_url":"https://api.github.com/repos/adinapoli/mandrill/languages","stargazers_url":"https://api.github.com/repos/adinapoli/mandrill/stargazers","contributors_url":"https://api.github.com/repos/adinapoli/mandrill/contributors","subscribers_url":"https://api.github.com/repos/adinapoli/mandrill/subscribers","subscription_url":"https://api.github.com/repos/adinapoli/mandrill/subscription","commits_url":"https://api.github.com/repos/adinapoli/mandrill/commits{/sha}","git_commits_url":"https://api.github.com/repos/adinapoli/mandrill/git/commits{/sha}","comments_url":"https://api.github.com/repos/adinapoli/mandrill/comments{/number}","issue_comment_url":"https://api.github.com/repos/adinapoli/mandrill/issues/comments{/number}","contents_url":"https://api.github.com/repos/adinapoli/mandrill/contents/{+path}","compare_url":"https://api.github.com/repos/adinapoli/mandrill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adinapoli/mandrill/merges","archive_url":"https://api.github.com/repos/adinapoli/mandrill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adinapoli/mandrill/downloads","issues_url":"https://api.github.com/repos/adinapoli/mandrill/issues{/number}","pulls_url":"https://api.github.com/repos/adinapoli/mandrill/pulls{/number}","milestones_url":"https://api.github.com/repos/adinapoli/mandrill/milestones{/number}","notifications_url":"https://api.github.com/repos/adinapoli/mandrill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adinapoli/mandrill/labels{/name}","releases_url":"https://api.github.com/repos/adinapoli/mandrill/releases{/id}","created_at":"2014-08-12T22:00:08Z","updated_at":"2015-04-30T15:29:01Z","pushed_at":"2015-08-09T18:19:26Z","git_url":"git://github.com/adinapoli/mandrill.git","ssh_url":"git@github.com:adinapoli/mandrill.git","clone_url":"https://github.com/adinapoli/mandrill.git","svn_url":"https://github.com/adinapoli/mandrill","homepage":null,"size":430,"stargazers_count":7,"watchers_count":7,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":7,"default_branch":"master"}},"base":{"label":"adinapoli:master","ref":"master","sha":"40962012d5c7ea431f8ccc7757db1d855009f655","user":{"login":"adinapoli","id":442035,"avatar_url":"https://avatars.githubusercontent.com/u/442035?v=3","gravatar_id":"","url":"https://api.github.com/users/adinapoli","html_url":"https://github.com/adinapoli","followers_url":"https://api.github.com/users/adinapoli/followers","following_url":"https://api.github.com/users/adinapoli/following{/other_user}","gists_url":"https://api.github.com/users/adinapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/adinapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adinapoli/subscriptions","organizations_url":"https://api.github.com/users/adinapoli/orgs","repos_url":"https://api.github.com/users/adinapoli/repos","events_url":"https://api.github.com/users/adinapoli/events{/privacy}","received_events_url":"https://api.github.com/users/adinapoli/received_events","type":"User","site_admin":false},"repo":{"id":22893958,"name":"mandrill","full_name":"adinapoli/mandrill","owner":{"login":"adinapoli","id":442035,"avatar_url":"https://avatars.githubusercontent.com/u/442035?v=3","gravatar_id":"","url":"https://api.github.com/users/adinapoli","html_url":"https://github.com/adinapoli","followers_url":"https://api.github.com/users/adinapoli/followers","following_url":"https://api.github.com/users/adinapoli/following{/other_user}","gists_url":"https://api.github.com/users/adinapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/adinapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adinapoli/subscriptions","organizations_url":"https://api.github.com/users/adinapoli/orgs","repos_url":"https://api.github.com/users/adinapoli/repos","events_url":"https://api.github.com/users/adinapoli/events{/privacy}","received_events_url":"https://api.github.com/users/adinapoli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adinapoli/mandrill","description":"Pure Haskell client for the Mandrill JSON API","fork":false,"url":"https://api.github.com/repos/adinapoli/mandrill","forks_url":"https://api.github.com/repos/adinapoli/mandrill/forks","keys_url":"https://api.github.com/repos/adinapoli/mandrill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adinapoli/mandrill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adinapoli/mandrill/teams","hooks_url":"https://api.github.com/repos/adinapoli/mandrill/hooks","issue_events_url":"https://api.github.com/repos/adinapoli/mandrill/issues/events{/number}","events_url":"https://api.github.com/repos/adinapoli/mandrill/events","assignees_url":"https://api.github.com/repos/adinapoli/mandrill/assignees{/user}","branches_url":"https://api.github.com/repos/adinapoli/mandrill/branches{/branch}","tags_url":"https://api.github.com/repos/adinapoli/mandrill/tags","blobs_url":"https://api.github.com/repos/adinapoli/mandrill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adinapoli/mandrill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adinapoli/mandrill/git/refs{/sha}","trees_url":"https://api.github.com/repos/adinapoli/mandrill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adinapoli/mandrill/statuses/{sha}","languages_url":"https://api.github.com/repos/adinapoli/mandrill/languages","stargazers_url":"https://api.github.com/repos/adinapoli/mandrill/stargazers","contributors_url":"https://api.github.com/repos/adinapoli/mandrill/contributors","subscribers_url":"https://api.github.com/repos/adinapoli/mandrill/subscribers","subscription_url":"https://api.github.com/repos/adinapoli/mandrill/subscription","commits_url":"https://api.github.com/repos/adinapoli/mandrill/commits{/sha}","git_commits_url":"https://api.github.com/repos/adinapoli/mandrill/git/commits{/sha}","comments_url":"https://api.github.com/repos/adinapoli/mandrill/comments{/number}","issue_comment_url":"https://api.github.com/repos/adinapoli/mandrill/issues/comments{/number}","contents_url":"https://api.github.com/repos/adinapoli/mandrill/contents/{+path}","compare_url":"https://api.github.com/repos/adinapoli/mandrill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adinapoli/mandrill/merges","archive_url":"https://api.github.com/repos/adinapoli/mandrill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adinapoli/mandrill/downloads","issues_url":"https://api.github.com/repos/adinapoli/mandrill/issues{/number}","pulls_url":"https://api.github.com/repos/adinapoli/mandrill/pulls{/number}","milestones_url":"https://api.github.com/repos/adinapoli/mandrill/milestones{/number}","notifications_url":"https://api.github.com/repos/adinapoli/mandrill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adinapoli/mandrill/labels{/name}","releases_url":"https://api.github.com/repos/adinapoli/mandrill/releases{/id}","created_at":"2014-08-12T22:00:08Z","updated_at":"2015-04-30T15:29:01Z","pushed_at":"2015-08-09T18:19:26Z","git_url":"git://github.com/adinapoli/mandrill.git","ssh_url":"git@github.com:adinapoli/mandrill.git","clone_url":"https://github.com/adinapoli/mandrill.git","svn_url":"https://github.com/adinapoli/mandrill","homepage":null,"size":430,"stargazers_count":7,"watchers_count":7,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adinapoli/mandrill/pulls/19"},"html":{"href":"https://github.com/adinapoli/mandrill/pull/19"},"issue":{"href":"https://api.github.com/repos/adinapoli/mandrill/issues/19"},"comments":{"href":"https://api.github.com/repos/adinapoli/mandrill/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/adinapoli/mandrill/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/adinapoli/mandrill/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adinapoli/mandrill/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/adinapoli/mandrill/statuses/01dcf4d5427fd80a50ad413d579ca29760aa526f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"adinapoli","id":442035,"avatar_url":"https://avatars.githubusercontent.com/u/442035?v=3","gravatar_id":"","url":"https://api.github.com/users/adinapoli","html_url":"https://github.com/adinapoli","followers_url":"https://api.github.com/users/adinapoli/followers","following_url":"https://api.github.com/users/adinapoli/following{/other_user}","gists_url":"https://api.github.com/users/adinapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/adinapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adinapoli/subscriptions","organizations_url":"https://api.github.com/users/adinapoli/orgs","repos_url":"https://api.github.com/users/adinapoli/repos","events_url":"https://api.github.com/users/adinapoli/events{/privacy}","received_events_url":"https://api.github.com/users/adinapoli/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":3,"additions":29,"deletions":27,"changed_files":7}}