{"action":"created","comment":{"url":"https://api.github.com/repos/anchor/oauth2-server/pulls/comments/33220214","id":33220214,"diff_hunk":"@@ -157,7 +160,8 @@ instance ToField UserID where\n     toField = toField . unpackUserID\n \n userid :: Prism' ByteString UserID\n-userid = prism' (T.encodeUtf8 . unpackUserID) (Just . UserID . T.decodeUtf8)\n+userid = prism' (T.encodeUtf8 . unpackUserID)\n+                (fmap UserID . hush . T.decodeUtf8')","path":"lib/Network/OAuth2/Server/Types.hs","position":32,"original_position":32,"commit_id":"980d6858cdbe0e2092b946308bbbd0589496421d","original_commit_id":"980d6858cdbe0e2092b946308bbbd0589496421d","user":{"login":"thsutton","id":62708,"avatar_url":"https://avatars.githubusercontent.com/u/62708?v=3","gravatar_id":"","url":"https://api.github.com/users/thsutton","html_url":"https://github.com/thsutton","followers_url":"https://api.github.com/users/thsutton/followers","following_url":"https://api.github.com/users/thsutton/following{/other_user}","gists_url":"https://api.github.com/users/thsutton/gists{/gist_id}","starred_url":"https://api.github.com/users/thsutton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thsutton/subscriptions","organizations_url":"https://api.github.com/users/thsutton/orgs","repos_url":"https://api.github.com/users/thsutton/repos","events_url":"https://api.github.com/users/thsutton/events{/privacy}","received_events_url":"https://api.github.com/users/thsutton/received_events","type":"User","site_admin":false},"body":"This is just `Nothing` instead of throwing an exception, right?","created_at":"2015-06-25T03:49:08Z","updated_at":"2015-06-25T03:49:08Z","html_url":"https://github.com/anchor/oauth2-server/pull/86#discussion_r33220214","pull_request_url":"https://api.github.com/repos/anchor/oauth2-server/pulls/86","_links":{"self":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/comments/33220214"},"html":{"href":"https://github.com/anchor/oauth2-server/pull/86#discussion_r33220214"},"pull_request":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/anchor/oauth2-server/pulls/86","id":38508253,"html_url":"https://github.com/anchor/oauth2-server/pull/86","diff_url":"https://github.com/anchor/oauth2-server/pull/86.diff","patch_url":"https://github.com/anchor/oauth2-server/pull/86.patch","issue_url":"https://api.github.com/repos/anchor/oauth2-server/issues/86","number":86,"state":"open","locked":false,"title":"store tests: encode some invariants into prisms, add more tests","user":{"login":"christian-marie","id":3360007,"avatar_url":"https://avatars.githubusercontent.com/u/3360007?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-marie","html_url":"https://github.com/christian-marie","followers_url":"https://api.github.com/users/christian-marie/followers","following_url":"https://api.github.com/users/christian-marie/following{/other_user}","gists_url":"https://api.github.com/users/christian-marie/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-marie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-marie/subscriptions","organizations_url":"https://api.github.com/users/christian-marie/orgs","repos_url":"https://api.github.com/users/christian-marie/repos","events_url":"https://api.github.com/users/christian-marie/events{/privacy}","received_events_url":"https://api.github.com/users/christian-marie/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-25T03:06:14Z","updated_at":"2015-06-25T03:49:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ec71bebc1ea4c18b4b39956f75ab31523160f95","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/anchor/oauth2-server/pulls/86/commits","review_comments_url":"https://api.github.com/repos/anchor/oauth2-server/pulls/86/comments","review_comment_url":"https://api.github.com/repos/anchor/oauth2-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/anchor/oauth2-server/issues/86/comments","statuses_url":"https://api.github.com/repos/anchor/oauth2-server/statuses/980d6858cdbe0e2092b946308bbbd0589496421d","head":{"label":"anchor:pingu/more-store-tests","ref":"pingu/more-store-tests","sha":"980d6858cdbe0e2092b946308bbbd0589496421d","user":{"login":"anchor","id":146304,"avatar_url":"https://avatars.githubusercontent.com/u/146304?v=3","gravatar_id":"","url":"https://api.github.com/users/anchor","html_url":"https://github.com/anchor","followers_url":"https://api.github.com/users/anchor/followers","following_url":"https://api.github.com/users/anchor/following{/other_user}","gists_url":"https://api.github.com/users/anchor/gists{/gist_id}","starred_url":"https://api.github.com/users/anchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchor/subscriptions","organizations_url":"https://api.github.com/users/anchor/orgs","repos_url":"https://api.github.com/users/anchor/repos","events_url":"https://api.github.com/users/anchor/events{/privacy}","received_events_url":"https://api.github.com/users/anchor/received_events","type":"Organization","site_admin":false},"repo":{"id":28891009,"name":"oauth2-server","full_name":"anchor/oauth2-server","owner":{"login":"anchor","id":146304,"avatar_url":"https://avatars.githubusercontent.com/u/146304?v=3","gravatar_id":"","url":"https://api.github.com/users/anchor","html_url":"https://github.com/anchor","followers_url":"https://api.github.com/users/anchor/followers","following_url":"https://api.github.com/users/anchor/following{/other_user}","gists_url":"https://api.github.com/users/anchor/gists{/gist_id}","starred_url":"https://api.github.com/users/anchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchor/subscriptions","organizations_url":"https://api.github.com/users/anchor/orgs","repos_url":"https://api.github.com/users/anchor/repos","events_url":"https://api.github.com/users/anchor/events{/privacy}","received_events_url":"https://api.github.com/users/anchor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/anchor/oauth2-server","description":"Haskell libraries for implementing OAuth2 servers.","fork":false,"url":"https://api.github.com/repos/anchor/oauth2-server","forks_url":"https://api.github.com/repos/anchor/oauth2-server/forks","keys_url":"https://api.github.com/repos/anchor/oauth2-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anchor/oauth2-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anchor/oauth2-server/teams","hooks_url":"https://api.github.com/repos/anchor/oauth2-server/hooks","issue_events_url":"https://api.github.com/repos/anchor/oauth2-server/issues/events{/number}","events_url":"https://api.github.com/repos/anchor/oauth2-server/events","assignees_url":"https://api.github.com/repos/anchor/oauth2-server/assignees{/user}","branches_url":"https://api.github.com/repos/anchor/oauth2-server/branches{/branch}","tags_url":"https://api.github.com/repos/anchor/oauth2-server/tags","blobs_url":"https://api.github.com/repos/anchor/oauth2-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anchor/oauth2-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anchor/oauth2-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/anchor/oauth2-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anchor/oauth2-server/statuses/{sha}","languages_url":"https://api.github.com/repos/anchor/oauth2-server/languages","stargazers_url":"https://api.github.com/repos/anchor/oauth2-server/stargazers","contributors_url":"https://api.github.com/repos/anchor/oauth2-server/contributors","subscribers_url":"https://api.github.com/repos/anchor/oauth2-server/subscribers","subscription_url":"https://api.github.com/repos/anchor/oauth2-server/subscription","commits_url":"https://api.github.com/repos/anchor/oauth2-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/anchor/oauth2-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/anchor/oauth2-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/anchor/oauth2-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/anchor/oauth2-server/contents/{+path}","compare_url":"https://api.github.com/repos/anchor/oauth2-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anchor/oauth2-server/merges","archive_url":"https://api.github.com/repos/anchor/oauth2-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anchor/oauth2-server/downloads","issues_url":"https://api.github.com/repos/anchor/oauth2-server/issues{/number}","pulls_url":"https://api.github.com/repos/anchor/oauth2-server/pulls{/number}","milestones_url":"https://api.github.com/repos/anchor/oauth2-server/milestones{/number}","notifications_url":"https://api.github.com/repos/anchor/oauth2-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anchor/oauth2-server/labels{/name}","releases_url":"https://api.github.com/repos/anchor/oauth2-server/releases{/id}","created_at":"2015-01-07T00:49:31Z","updated_at":"2015-06-17T09:14:26Z","pushed_at":"2015-06-25T03:13:51Z","git_url":"git://github.com/anchor/oauth2-server.git","ssh_url":"git@github.com:anchor/oauth2-server.git","clone_url":"https://github.com/anchor/oauth2-server.git","svn_url":"https://github.com/anchor/oauth2-server","homepage":null,"size":1500,"stargazers_count":4,"watchers_count":4,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":4,"default_branch":"master"}},"base":{"label":"anchor:master","ref":"master","sha":"e75cc8aa9ec7601d67262051d17a3a77d56192c1","user":{"login":"anchor","id":146304,"avatar_url":"https://avatars.githubusercontent.com/u/146304?v=3","gravatar_id":"","url":"https://api.github.com/users/anchor","html_url":"https://github.com/anchor","followers_url":"https://api.github.com/users/anchor/followers","following_url":"https://api.github.com/users/anchor/following{/other_user}","gists_url":"https://api.github.com/users/anchor/gists{/gist_id}","starred_url":"https://api.github.com/users/anchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchor/subscriptions","organizations_url":"https://api.github.com/users/anchor/orgs","repos_url":"https://api.github.com/users/anchor/repos","events_url":"https://api.github.com/users/anchor/events{/privacy}","received_events_url":"https://api.github.com/users/anchor/received_events","type":"Organization","site_admin":false},"repo":{"id":28891009,"name":"oauth2-server","full_name":"anchor/oauth2-server","owner":{"login":"anchor","id":146304,"avatar_url":"https://avatars.githubusercontent.com/u/146304?v=3","gravatar_id":"","url":"https://api.github.com/users/anchor","html_url":"https://github.com/anchor","followers_url":"https://api.github.com/users/anchor/followers","following_url":"https://api.github.com/users/anchor/following{/other_user}","gists_url":"https://api.github.com/users/anchor/gists{/gist_id}","starred_url":"https://api.github.com/users/anchor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anchor/subscriptions","organizations_url":"https://api.github.com/users/anchor/orgs","repos_url":"https://api.github.com/users/anchor/repos","events_url":"https://api.github.com/users/anchor/events{/privacy}","received_events_url":"https://api.github.com/users/anchor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/anchor/oauth2-server","description":"Haskell libraries for implementing OAuth2 servers.","fork":false,"url":"https://api.github.com/repos/anchor/oauth2-server","forks_url":"https://api.github.com/repos/anchor/oauth2-server/forks","keys_url":"https://api.github.com/repos/anchor/oauth2-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anchor/oauth2-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anchor/oauth2-server/teams","hooks_url":"https://api.github.com/repos/anchor/oauth2-server/hooks","issue_events_url":"https://api.github.com/repos/anchor/oauth2-server/issues/events{/number}","events_url":"https://api.github.com/repos/anchor/oauth2-server/events","assignees_url":"https://api.github.com/repos/anchor/oauth2-server/assignees{/user}","branches_url":"https://api.github.com/repos/anchor/oauth2-server/branches{/branch}","tags_url":"https://api.github.com/repos/anchor/oauth2-server/tags","blobs_url":"https://api.github.com/repos/anchor/oauth2-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anchor/oauth2-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anchor/oauth2-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/anchor/oauth2-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anchor/oauth2-server/statuses/{sha}","languages_url":"https://api.github.com/repos/anchor/oauth2-server/languages","stargazers_url":"https://api.github.com/repos/anchor/oauth2-server/stargazers","contributors_url":"https://api.github.com/repos/anchor/oauth2-server/contributors","subscribers_url":"https://api.github.com/repos/anchor/oauth2-server/subscribers","subscription_url":"https://api.github.com/repos/anchor/oauth2-server/subscription","commits_url":"https://api.github.com/repos/anchor/oauth2-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/anchor/oauth2-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/anchor/oauth2-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/anchor/oauth2-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/anchor/oauth2-server/contents/{+path}","compare_url":"https://api.github.com/repos/anchor/oauth2-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anchor/oauth2-server/merges","archive_url":"https://api.github.com/repos/anchor/oauth2-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anchor/oauth2-server/downloads","issues_url":"https://api.github.com/repos/anchor/oauth2-server/issues{/number}","pulls_url":"https://api.github.com/repos/anchor/oauth2-server/pulls{/number}","milestones_url":"https://api.github.com/repos/anchor/oauth2-server/milestones{/number}","notifications_url":"https://api.github.com/repos/anchor/oauth2-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anchor/oauth2-server/labels{/name}","releases_url":"https://api.github.com/repos/anchor/oauth2-server/releases{/id}","created_at":"2015-01-07T00:49:31Z","updated_at":"2015-06-17T09:14:26Z","pushed_at":"2015-06-25T03:13:51Z","git_url":"git://github.com/anchor/oauth2-server.git","ssh_url":"git@github.com:anchor/oauth2-server.git","clone_url":"https://github.com/anchor/oauth2-server.git","svn_url":"https://github.com/anchor/oauth2-server","homepage":null,"size":1500,"stargazers_count":4,"watchers_count":4,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/86"},"html":{"href":"https://github.com/anchor/oauth2-server/pull/86"},"issue":{"href":"https://api.github.com/repos/anchor/oauth2-server/issues/86"},"comments":{"href":"https://api.github.com/repos/anchor/oauth2-server/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/anchor/oauth2-server/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/anchor/oauth2-server/statuses/980d6858cdbe0e2092b946308bbbd0589496421d"}}}}