{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/Argo/pulls/comments/58302096","id":58302096,"diff_hunk":"@@ -14,13 +16,15 @@ public func >>- <T, U>(x: Decoded<T>, @noescape f: T -> Decoded<U>) -> Decoded<U\n }\n \n /**\n-  flatMap a function over a `Decoded` value (left associative)\n+  Conditionally map a function over a `Decoded` value, flattening the result.\n \n-  - If the value is a failing case (`.TypeMismatch`, `.MissingKey`), the function will not be evaluated and this will return the value\n-  - If the value is `.Success`, the function will be applied to the unwrapped value\n+  - If the value is `.Failure`, the function will not be evaluated and this\n+    will return `.Failure`.\n+  - If the value is `.Success`, the function will be applied to the unwrapped\n+    value.","path":"Argo/Types/Decoded/Monad.swift","position":26,"original_position":26,"commit_id":"7543ba6b407fe1d9b277826f5a4fa8849dae405a","original_commit_id":"7543ba6b407fe1d9b277826f5a4fa8849dae405a","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"body":"...and then it'll be re-wrapped, right?","created_at":"2016-04-03T00:12:46Z","updated_at":"2016-04-03T00:12:46Z","html_url":"https://github.com/thoughtbot/Argo/pull/348#discussion_r58302096","pull_request_url":"https://api.github.com/repos/thoughtbot/Argo/pulls/348","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/Argo/pulls/comments/58302096"},"html":{"href":"https://github.com/thoughtbot/Argo/pull/348#discussion_r58302096"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/Argo/pulls/348"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/Argo/pulls/348","id":65044814,"html_url":"https://github.com/thoughtbot/Argo/pull/348","diff_url":"https://github.com/thoughtbot/Argo/pull/348.diff","patch_url":"https://github.com/thoughtbot/Argo/pull/348.patch","issue_url":"https://api.github.com/repos/thoughtbot/Argo/issues/348","number":348,"state":"open","locked":false,"title":"Update the documentation for Decoded/Monad","user":{"login":"gfontenot","id":124499,"avatar_url":"https://avatars.githubusercontent.com/u/124499?v=3","gravatar_id":"","url":"https://api.github.com/users/gfontenot","html_url":"https://github.com/gfontenot","followers_url":"https://api.github.com/users/gfontenot/followers","following_url":"https://api.github.com/users/gfontenot/following{/other_user}","gists_url":"https://api.github.com/users/gfontenot/gists{/gist_id}","starred_url":"https://api.github.com/users/gfontenot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfontenot/subscriptions","organizations_url":"https://api.github.com/users/gfontenot/orgs","repos_url":"https://api.github.com/users/gfontenot/repos","events_url":"https://api.github.com/users/gfontenot/events{/privacy}","received_events_url":"https://api.github.com/users/gfontenot/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-04-02T17:47:10Z","updated_at":"2016-04-03T00:12:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c9f043c77b75d48f9efafe69dbfeb914e16ab0c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/Argo/pulls/348/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/Argo/pulls/348/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/Argo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/Argo/issues/348/comments","statuses_url":"https://api.github.com/repos/thoughtbot/Argo/statuses/7543ba6b407fe1d9b277826f5a4fa8849dae405a","head":{"label":"thoughtbot:gf-document-monad","ref":"gf-document-monad","sha":"7543ba6b407fe1d9b277826f5a4fa8849dae405a","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":24349480,"name":"Argo","full_name":"thoughtbot/Argo","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/Argo","description":"Functional JSON parsing library for Swift","fork":false,"url":"https://api.github.com/repos/thoughtbot/Argo","forks_url":"https://api.github.com/repos/thoughtbot/Argo/forks","keys_url":"https://api.github.com/repos/thoughtbot/Argo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/Argo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/Argo/teams","hooks_url":"https://api.github.com/repos/thoughtbot/Argo/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/Argo/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/Argo/events","assignees_url":"https://api.github.com/repos/thoughtbot/Argo/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/Argo/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/Argo/tags","blobs_url":"https://api.github.com/repos/thoughtbot/Argo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/Argo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/Argo/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/Argo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/Argo/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/Argo/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/Argo/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/Argo/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/Argo/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/Argo/subscription","commits_url":"https://api.github.com/repos/thoughtbot/Argo/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/Argo/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/Argo/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/Argo/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/Argo/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/Argo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/Argo/merges","archive_url":"https://api.github.com/repos/thoughtbot/Argo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/Argo/downloads","issues_url":"https://api.github.com/repos/thoughtbot/Argo/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/Argo/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/Argo/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/Argo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/Argo/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/Argo/releases{/id}","deployments_url":"https://api.github.com/repos/thoughtbot/Argo/deployments","created_at":"2014-09-22T23:37:03Z","updated_at":"2016-04-02T09:22:55Z","pushed_at":"2016-04-03T00:12:07Z","git_url":"git://github.com/thoughtbot/Argo.git","ssh_url":"git@github.com:thoughtbot/Argo.git","clone_url":"https://github.com/thoughtbot/Argo.git","svn_url":"https://github.com/thoughtbot/Argo","homepage":"https://thoughtbot.com/open-source","size":1594,"stargazers_count":2189,"watchers_count":2189,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":139,"mirror_url":null,"open_issues_count":39,"forks":139,"open_issues":39,"watchers":2189,"default_branch":"master"}},"base":{"label":"thoughtbot:master","ref":"master","sha":"28493804f1bca89c0ba2aae8697e1dc6492051a7","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":24349480,"name":"Argo","full_name":"thoughtbot/Argo","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/Argo","description":"Functional JSON parsing library for Swift","fork":false,"url":"https://api.github.com/repos/thoughtbot/Argo","forks_url":"https://api.github.com/repos/thoughtbot/Argo/forks","keys_url":"https://api.github.com/repos/thoughtbot/Argo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/Argo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/Argo/teams","hooks_url":"https://api.github.com/repos/thoughtbot/Argo/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/Argo/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/Argo/events","assignees_url":"https://api.github.com/repos/thoughtbot/Argo/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/Argo/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/Argo/tags","blobs_url":"https://api.github.com/repos/thoughtbot/Argo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/Argo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/Argo/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/Argo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/Argo/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/Argo/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/Argo/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/Argo/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/Argo/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/Argo/subscription","commits_url":"https://api.github.com/repos/thoughtbot/Argo/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/Argo/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/Argo/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/Argo/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/Argo/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/Argo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/Argo/merges","archive_url":"https://api.github.com/repos/thoughtbot/Argo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/Argo/downloads","issues_url":"https://api.github.com/repos/thoughtbot/Argo/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/Argo/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/Argo/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/Argo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/Argo/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/Argo/releases{/id}","deployments_url":"https://api.github.com/repos/thoughtbot/Argo/deployments","created_at":"2014-09-22T23:37:03Z","updated_at":"2016-04-02T09:22:55Z","pushed_at":"2016-04-03T00:12:07Z","git_url":"git://github.com/thoughtbot/Argo.git","ssh_url":"git@github.com:thoughtbot/Argo.git","clone_url":"https://github.com/thoughtbot/Argo.git","svn_url":"https://github.com/thoughtbot/Argo","homepage":"https://thoughtbot.com/open-source","size":1594,"stargazers_count":2189,"watchers_count":2189,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":139,"mirror_url":null,"open_issues_count":39,"forks":139,"open_issues":39,"watchers":2189,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/Argo/pulls/348"},"html":{"href":"https://github.com/thoughtbot/Argo/pull/348"},"issue":{"href":"https://api.github.com/repos/thoughtbot/Argo/issues/348"},"comments":{"href":"https://api.github.com/repos/thoughtbot/Argo/issues/348/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/Argo/pulls/348/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/Argo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/Argo/pulls/348/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/Argo/statuses/7543ba6b407fe1d9b277826f5a4fa8849dae405a"}}}}