{"action":"created","comment":{"url":"https://api.github.com/repos/plaid/sanctuary/pulls/comments/38724571","id":38724571,"diff_hunk":"@@ -972,6 +972,22 @@\n     return either instanceof Left ? l(either.value) : r(either.value);\n   });\n \n+  //# maybeToEither :: a -> Maybe b -> Either a b\n+  //.\n+  //. Converts a Maybe value to an Either value, using the supplied\n+  //. parameter as the Left value if the Maybe is Nothing.","path":"index.js","position":7,"original_position":7,"commit_id":"9042d9f2cf9a50c40c8127dbc56875932a3f7667","original_commit_id":"9042d9f2cf9a50c40c8127dbc56875932a3f7667","user":{"login":"kedashoe","id":719519,"avatar_url":"https://avatars.githubusercontent.com/u/719519?v=3","gravatar_id":"","url":"https://api.github.com/users/kedashoe","html_url":"https://github.com/kedashoe","followers_url":"https://api.github.com/users/kedashoe/followers","following_url":"https://api.github.com/users/kedashoe/following{/other_user}","gists_url":"https://api.github.com/users/kedashoe/gists{/gist_id}","starred_url":"https://api.github.com/users/kedashoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kedashoe/subscriptions","organizations_url":"https://api.github.com/users/kedashoe/orgs","repos_url":"https://api.github.com/users/kedashoe/repos","events_url":"https://api.github.com/users/kedashoe/events{/privacy}","received_events_url":"https://api.github.com/users/kedashoe/received_events","type":"User","site_admin":false},"body":"I can't take credit, just copied it from Haskell's docs haha","created_at":"2015-09-04T06:23:23Z","updated_at":"2015-09-04T06:23:23Z","html_url":"https://github.com/plaid/sanctuary/pull/76#discussion_r38724571","pull_request_url":"https://api.github.com/repos/plaid/sanctuary/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/plaid/sanctuary/pulls/comments/38724571"},"html":{"href":"https://github.com/plaid/sanctuary/pull/76#discussion_r38724571"},"pull_request":{"href":"https://api.github.com/repos/plaid/sanctuary/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/plaid/sanctuary/pulls/76","id":44185333,"html_url":"https://github.com/plaid/sanctuary/pull/76","diff_url":"https://github.com/plaid/sanctuary/pull/76.diff","patch_url":"https://github.com/plaid/sanctuary/pull/76.patch","issue_url":"https://api.github.com/repos/plaid/sanctuary/issues/76","number":76,"state":"open","locked":false,"title":"add maybeToEither","user":{"login":"kedashoe","id":719519,"avatar_url":"https://avatars.githubusercontent.com/u/719519?v=3","gravatar_id":"","url":"https://api.github.com/users/kedashoe","html_url":"https://github.com/kedashoe","followers_url":"https://api.github.com/users/kedashoe/followers","following_url":"https://api.github.com/users/kedashoe/following{/other_user}","gists_url":"https://api.github.com/users/kedashoe/gists{/gist_id}","starred_url":"https://api.github.com/users/kedashoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kedashoe/subscriptions","organizations_url":"https://api.github.com/users/kedashoe/orgs","repos_url":"https://api.github.com/users/kedashoe/repos","events_url":"https://api.github.com/users/kedashoe/events{/privacy}","received_events_url":"https://api.github.com/users/kedashoe/received_events","type":"User","site_admin":false},"body":"I basically just followed the `either` tests except for the 'is curried' part, as I noticed it was quite extensive but none of the other 'is curried' tests were.\r\n\r\nI decided against including \"eitherIfElse\" for now. I pretty much only created it because it seemed like a decent idea and you can use it to define `maybeToEither`. If you really like the idea of, I'm happy to submit a PR, but I figured I'd just let it hang out in my code for a while and see how much I actually use it.","created_at":"2015-09-04T05:55:15Z","updated_at":"2015-09-04T06:23:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d1039504890caa00a8348e31b52e66ab7e2918f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/plaid/sanctuary/pulls/76/commits","review_comments_url":"https://api.github.com/repos/plaid/sanctuary/pulls/76/comments","review_comment_url":"https://api.github.com/repos/plaid/sanctuary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plaid/sanctuary/issues/76/comments","statuses_url":"https://api.github.com/repos/plaid/sanctuary/statuses/9042d9f2cf9a50c40c8127dbc56875932a3f7667","head":{"label":"kedashoe:either-utils","ref":"either-utils","sha":"9042d9f2cf9a50c40c8127dbc56875932a3f7667","user":{"login":"kedashoe","id":719519,"avatar_url":"https://avatars.githubusercontent.com/u/719519?v=3","gravatar_id":"","url":"https://api.github.com/users/kedashoe","html_url":"https://github.com/kedashoe","followers_url":"https://api.github.com/users/kedashoe/followers","following_url":"https://api.github.com/users/kedashoe/following{/other_user}","gists_url":"https://api.github.com/users/kedashoe/gists{/gist_id}","starred_url":"https://api.github.com/users/kedashoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kedashoe/subscriptions","organizations_url":"https://api.github.com/users/kedashoe/orgs","repos_url":"https://api.github.com/users/kedashoe/repos","events_url":"https://api.github.com/users/kedashoe/events{/privacy}","received_events_url":"https://api.github.com/users/kedashoe/received_events","type":"User","site_admin":false},"repo":{"id":40255088,"name":"sanctuary","full_name":"kedashoe/sanctuary","owner":{"login":"kedashoe","id":719519,"avatar_url":"https://avatars.githubusercontent.com/u/719519?v=3","gravatar_id":"","url":"https://api.github.com/users/kedashoe","html_url":"https://github.com/kedashoe","followers_url":"https://api.github.com/users/kedashoe/followers","following_url":"https://api.github.com/users/kedashoe/following{/other_user}","gists_url":"https://api.github.com/users/kedashoe/gists{/gist_id}","starred_url":"https://api.github.com/users/kedashoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kedashoe/subscriptions","organizations_url":"https://api.github.com/users/kedashoe/orgs","repos_url":"https://api.github.com/users/kedashoe/repos","events_url":"https://api.github.com/users/kedashoe/events{/privacy}","received_events_url":"https://api.github.com/users/kedashoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kedashoe/sanctuary","description":":see_no_evil: Refuge from unsafe JavaScript","fork":true,"url":"https://api.github.com/repos/kedashoe/sanctuary","forks_url":"https://api.github.com/repos/kedashoe/sanctuary/forks","keys_url":"https://api.github.com/repos/kedashoe/sanctuary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kedashoe/sanctuary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kedashoe/sanctuary/teams","hooks_url":"https://api.github.com/repos/kedashoe/sanctuary/hooks","issue_events_url":"https://api.github.com/repos/kedashoe/sanctuary/issues/events{/number}","events_url":"https://api.github.com/repos/kedashoe/sanctuary/events","assignees_url":"https://api.github.com/repos/kedashoe/sanctuary/assignees{/user}","branches_url":"https://api.github.com/repos/kedashoe/sanctuary/branches{/branch}","tags_url":"https://api.github.com/repos/kedashoe/sanctuary/tags","blobs_url":"https://api.github.com/repos/kedashoe/sanctuary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kedashoe/sanctuary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kedashoe/sanctuary/git/refs{/sha}","trees_url":"https://api.github.com/repos/kedashoe/sanctuary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kedashoe/sanctuary/statuses/{sha}","languages_url":"https://api.github.com/repos/kedashoe/sanctuary/languages","stargazers_url":"https://api.github.com/repos/kedashoe/sanctuary/stargazers","contributors_url":"https://api.github.com/repos/kedashoe/sanctuary/contributors","subscribers_url":"https://api.github.com/repos/kedashoe/sanctuary/subscribers","subscription_url":"https://api.github.com/repos/kedashoe/sanctuary/subscription","commits_url":"https://api.github.com/repos/kedashoe/sanctuary/commits{/sha}","git_commits_url":"https://api.github.com/repos/kedashoe/sanctuary/git/commits{/sha}","comments_url":"https://api.github.com/repos/kedashoe/sanctuary/comments{/number}","issue_comment_url":"https://api.github.com/repos/kedashoe/sanctuary/issues/comments{/number}","contents_url":"https://api.github.com/repos/kedashoe/sanctuary/contents/{+path}","compare_url":"https://api.github.com/repos/kedashoe/sanctuary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kedashoe/sanctuary/merges","archive_url":"https://api.github.com/repos/kedashoe/sanctuary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kedashoe/sanctuary/downloads","issues_url":"https://api.github.com/repos/kedashoe/sanctuary/issues{/number}","pulls_url":"https://api.github.com/repos/kedashoe/sanctuary/pulls{/number}","milestones_url":"https://api.github.com/repos/kedashoe/sanctuary/milestones{/number}","notifications_url":"https://api.github.com/repos/kedashoe/sanctuary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kedashoe/sanctuary/labels{/name}","releases_url":"https://api.github.com/repos/kedashoe/sanctuary/releases{/id}","created_at":"2015-08-05T16:04:21Z","updated_at":"2015-08-05T16:04:21Z","pushed_at":"2015-09-04T06:14:43Z","git_url":"git://github.com/kedashoe/sanctuary.git","ssh_url":"git@github.com:kedashoe/sanctuary.git","clone_url":"https://github.com/kedashoe/sanctuary.git","svn_url":"https://github.com/kedashoe/sanctuary","homepage":"","size":244,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"plaid:master","ref":"master","sha":"ad66b147a02aa9d937c863d8c401f1be8ba71ba4","user":{"login":"plaid","id":3579888,"avatar_url":"https://avatars.githubusercontent.com/u/3579888?v=3","gravatar_id":"","url":"https://api.github.com/users/plaid","html_url":"https://github.com/plaid","followers_url":"https://api.github.com/users/plaid/followers","following_url":"https://api.github.com/users/plaid/following{/other_user}","gists_url":"https://api.github.com/users/plaid/gists{/gist_id}","starred_url":"https://api.github.com/users/plaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plaid/subscriptions","organizations_url":"https://api.github.com/users/plaid/orgs","repos_url":"https://api.github.com/users/plaid/repos","events_url":"https://api.github.com/users/plaid/events{/privacy}","received_events_url":"https://api.github.com/users/plaid/received_events","type":"Organization","site_admin":false},"repo":{"id":29455960,"name":"sanctuary","full_name":"plaid/sanctuary","owner":{"login":"plaid","id":3579888,"avatar_url":"https://avatars.githubusercontent.com/u/3579888?v=3","gravatar_id":"","url":"https://api.github.com/users/plaid","html_url":"https://github.com/plaid","followers_url":"https://api.github.com/users/plaid/followers","following_url":"https://api.github.com/users/plaid/following{/other_user}","gists_url":"https://api.github.com/users/plaid/gists{/gist_id}","starred_url":"https://api.github.com/users/plaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plaid/subscriptions","organizations_url":"https://api.github.com/users/plaid/orgs","repos_url":"https://api.github.com/users/plaid/repos","events_url":"https://api.github.com/users/plaid/events{/privacy}","received_events_url":"https://api.github.com/users/plaid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plaid/sanctuary","description":":see_no_evil: Refuge from unsafe JavaScript","fork":false,"url":"https://api.github.com/repos/plaid/sanctuary","forks_url":"https://api.github.com/repos/plaid/sanctuary/forks","keys_url":"https://api.github.com/repos/plaid/sanctuary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plaid/sanctuary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plaid/sanctuary/teams","hooks_url":"https://api.github.com/repos/plaid/sanctuary/hooks","issue_events_url":"https://api.github.com/repos/plaid/sanctuary/issues/events{/number}","events_url":"https://api.github.com/repos/plaid/sanctuary/events","assignees_url":"https://api.github.com/repos/plaid/sanctuary/assignees{/user}","branches_url":"https://api.github.com/repos/plaid/sanctuary/branches{/branch}","tags_url":"https://api.github.com/repos/plaid/sanctuary/tags","blobs_url":"https://api.github.com/repos/plaid/sanctuary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plaid/sanctuary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plaid/sanctuary/git/refs{/sha}","trees_url":"https://api.github.com/repos/plaid/sanctuary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plaid/sanctuary/statuses/{sha}","languages_url":"https://api.github.com/repos/plaid/sanctuary/languages","stargazers_url":"https://api.github.com/repos/plaid/sanctuary/stargazers","contributors_url":"https://api.github.com/repos/plaid/sanctuary/contributors","subscribers_url":"https://api.github.com/repos/plaid/sanctuary/subscribers","subscription_url":"https://api.github.com/repos/plaid/sanctuary/subscription","commits_url":"https://api.github.com/repos/plaid/sanctuary/commits{/sha}","git_commits_url":"https://api.github.com/repos/plaid/sanctuary/git/commits{/sha}","comments_url":"https://api.github.com/repos/plaid/sanctuary/comments{/number}","issue_comment_url":"https://api.github.com/repos/plaid/sanctuary/issues/comments{/number}","contents_url":"https://api.github.com/repos/plaid/sanctuary/contents/{+path}","compare_url":"https://api.github.com/repos/plaid/sanctuary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plaid/sanctuary/merges","archive_url":"https://api.github.com/repos/plaid/sanctuary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plaid/sanctuary/downloads","issues_url":"https://api.github.com/repos/plaid/sanctuary/issues{/number}","pulls_url":"https://api.github.com/repos/plaid/sanctuary/pulls{/number}","milestones_url":"https://api.github.com/repos/plaid/sanctuary/milestones{/number}","notifications_url":"https://api.github.com/repos/plaid/sanctuary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plaid/sanctuary/labels{/name}","releases_url":"https://api.github.com/repos/plaid/sanctuary/releases{/id}","created_at":"2015-01-19T05:52:10Z","updated_at":"2015-09-01T23:10:06Z","pushed_at":"2015-09-04T06:14:43Z","git_url":"git://github.com/plaid/sanctuary.git","ssh_url":"git@github.com:plaid/sanctuary.git","clone_url":"https://github.com/plaid/sanctuary.git","svn_url":"https://github.com/plaid/sanctuary","homepage":"","size":1212,"stargazers_count":95,"watchers_count":95,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":13,"forks":6,"open_issues":13,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plaid/sanctuary/pulls/76"},"html":{"href":"https://github.com/plaid/sanctuary/pull/76"},"issue":{"href":"https://api.github.com/repos/plaid/sanctuary/issues/76"},"comments":{"href":"https://api.github.com/repos/plaid/sanctuary/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/plaid/sanctuary/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/plaid/sanctuary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plaid/sanctuary/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/plaid/sanctuary/statuses/9042d9f2cf9a50c40c8127dbc56875932a3f7667"}}}}