{"action":"created","comment":{"url":"https://api.github.com/repos/propensive/magnolia/pulls/comments/207571328","pull_request_review_id":143214721,"id":207571328,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzU3MTMyOA==","diff_hunk":"@@ -155,6 +155,26 @@ abstract class CaseClass[Typeclass[_], Type] private[magnolia] (\n   final def construct[Return](makeParam: Param[Typeclass, Type] => Return): Type =\n     rawConstruct(parameters map makeParam)\n \n+  /**\n+   * Like construct but allows each parameter to fail with an error.\n+   *\n+   * @see construct\n+   */\n+  final def econstruct[E <: AnyRef, Return](makeParam: Param[Typeclass, Type] => Either[E, Return]): Either[E, Type] = {\n+    // poor man's scalaz.Traverse\n+    try {\n+      val bits = parameters.map { p =>\n+        makeParam(p) match {\n+          case Left(e) => throw EarlyExit(e)","path":"core/shared/src/main/scala/interface.scala","position":14,"original_position":14,"commit_id":"653908018e8dfa5b27505d57bbf218e5156b1cd9","original_commit_id":"6b0f6dcf1f0013552870fd37564da4244afd208c","user":{"login":"propensive","id":1024588,"node_id":"MDQ6VXNlcjEwMjQ1ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/1024588?v=4","gravatar_id":"","url":"https://api.github.com/users/propensive","html_url":"https://github.com/propensive","followers_url":"https://api.github.com/users/propensive/followers","following_url":"https://api.github.com/users/propensive/following{/other_user}","gists_url":"https://api.github.com/users/propensive/gists{/gist_id}","starred_url":"https://api.github.com/users/propensive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/propensive/subscriptions","organizations_url":"https://api.github.com/users/propensive/orgs","repos_url":"https://api.github.com/users/propensive/repos","events_url":"https://api.github.com/users/propensive/events{/privacy}","received_events_url":"https://api.github.com/users/propensive/received_events","type":"User","site_admin":false},"body":"`return Left(err.asInstanceOf[E])`, and remove the `try`/`catch`?","created_at":"2018-08-03T14:54:43Z","updated_at":"2018-08-03T14:59:56Z","html_url":"https://github.com/propensive/magnolia/pull/120#discussion_r207571328","pull_request_url":"https://api.github.com/repos/propensive/magnolia/pulls/120","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/propensive/magnolia/pulls/comments/207571328"},"html":{"href":"https://github.com/propensive/magnolia/pull/120#discussion_r207571328"},"pull_request":{"href":"https://api.github.com/repos/propensive/magnolia/pulls/120"}}},"pull_request":{"url":"https://api.github.com/repos/propensive/magnolia/pulls/120","id":206049159,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MDQ5MTU5","html_url":"https://github.com/propensive/magnolia/pull/120","diff_url":"https://github.com/propensive/magnolia/pull/120.diff","patch_url":"https://github.com/propensive/magnolia/pull/120.patch","issue_url":"https://api.github.com/repos/propensive/magnolia/issues/120","number":120,"state":"open","locked":false,"title":"econstruct, like scalaz.MonadError.emap","user":{"login":"fommil","id":1914041,"node_id":"MDQ6VXNlcjE5MTQwNDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1914041?v=4","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"body":"close #118","created_at":"2018-08-03T14:34:24Z","updated_at":"2018-08-03T14:59:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a7c167aa51ba9cb148de3890c2fe3a3484b2d81","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/propensive/magnolia/pulls/120/commits","review_comments_url":"https://api.github.com/repos/propensive/magnolia/pulls/120/comments","review_comment_url":"https://api.github.com/repos/propensive/magnolia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/propensive/magnolia/issues/120/comments","statuses_url":"https://api.github.com/repos/propensive/magnolia/statuses/653908018e8dfa5b27505d57bbf218e5156b1cd9","head":{"label":"fommil:econstruct","ref":"econstruct","sha":"653908018e8dfa5b27505d57bbf218e5156b1cd9","user":{"login":"fommil","id":1914041,"node_id":"MDQ6VXNlcjE5MTQwNDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1914041?v=4","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"repo":{"id":143433155,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM0MzMxNTU=","name":"magnolia","full_name":"fommil/magnolia","owner":{"login":"fommil","id":1914041,"node_id":"MDQ6VXNlcjE5MTQwNDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1914041?v=4","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fommil/magnolia","description":"A better generic macro for Scala","fork":true,"url":"https://api.github.com/repos/fommil/magnolia","forks_url":"https://api.github.com/repos/fommil/magnolia/forks","keys_url":"https://api.github.com/repos/fommil/magnolia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fommil/magnolia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fommil/magnolia/teams","hooks_url":"https://api.github.com/repos/fommil/magnolia/hooks","issue_events_url":"https://api.github.com/repos/fommil/magnolia/issues/events{/number}","events_url":"https://api.github.com/repos/fommil/magnolia/events","assignees_url":"https://api.github.com/repos/fommil/magnolia/assignees{/user}","branches_url":"https://api.github.com/repos/fommil/magnolia/branches{/branch}","tags_url":"https://api.github.com/repos/fommil/magnolia/tags","blobs_url":"https://api.github.com/repos/fommil/magnolia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fommil/magnolia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fommil/magnolia/git/refs{/sha}","trees_url":"https://api.github.com/repos/fommil/magnolia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fommil/magnolia/statuses/{sha}","languages_url":"https://api.github.com/repos/fommil/magnolia/languages","stargazers_url":"https://api.github.com/repos/fommil/magnolia/stargazers","contributors_url":"https://api.github.com/repos/fommil/magnolia/contributors","subscribers_url":"https://api.github.com/repos/fommil/magnolia/subscribers","subscription_url":"https://api.github.com/repos/fommil/magnolia/subscription","commits_url":"https://api.github.com/repos/fommil/magnolia/commits{/sha}","git_commits_url":"https://api.github.com/repos/fommil/magnolia/git/commits{/sha}","comments_url":"https://api.github.com/repos/fommil/magnolia/comments{/number}","issue_comment_url":"https://api.github.com/repos/fommil/magnolia/issues/comments{/number}","contents_url":"https://api.github.com/repos/fommil/magnolia/contents/{+path}","compare_url":"https://api.github.com/repos/fommil/magnolia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fommil/magnolia/merges","archive_url":"https://api.github.com/repos/fommil/magnolia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fommil/magnolia/downloads","issues_url":"https://api.github.com/repos/fommil/magnolia/issues{/number}","pulls_url":"https://api.github.com/repos/fommil/magnolia/pulls{/number}","milestones_url":"https://api.github.com/repos/fommil/magnolia/milestones{/number}","notifications_url":"https://api.github.com/repos/fommil/magnolia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fommil/magnolia/labels{/name}","releases_url":"https://api.github.com/repos/fommil/magnolia/releases{/id}","deployments_url":"https://api.github.com/repos/fommil/magnolia/deployments","created_at":"2018-08-03T13:49:48Z","updated_at":"2018-08-03T13:49:50Z","pushed_at":"2018-08-03T14:55:55Z","git_url":"git://github.com/fommil/magnolia.git","ssh_url":"git@github.com:fommil/magnolia.git","clone_url":"https://github.com/fommil/magnolia.git","svn_url":"https://github.com/fommil/magnolia","homepage":null,"size":913,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"propensive:master","ref":"master","sha":"bb1e611534a58d7ffb4b350de603e241804531df","user":{"login":"propensive","id":1024588,"node_id":"MDQ6VXNlcjEwMjQ1ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/1024588?v=4","gravatar_id":"","url":"https://api.github.com/users/propensive","html_url":"https://github.com/propensive","followers_url":"https://api.github.com/users/propensive/followers","following_url":"https://api.github.com/users/propensive/following{/other_user}","gists_url":"https://api.github.com/users/propensive/gists{/gist_id}","starred_url":"https://api.github.com/users/propensive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/propensive/subscriptions","organizations_url":"https://api.github.com/users/propensive/orgs","repos_url":"https://api.github.com/users/propensive/repos","events_url":"https://api.github.com/users/propensive/events{/privacy}","received_events_url":"https://api.github.com/users/propensive/received_events","type":"User","site_admin":false},"repo":{"id":93566457,"node_id":"MDEwOlJlcG9zaXRvcnk5MzU2NjQ1Nw==","name":"magnolia","full_name":"propensive/magnolia","owner":{"login":"propensive","id":1024588,"node_id":"MDQ6VXNlcjEwMjQ1ODg=","avatar_url":"https://avatars0.githubusercontent.com/u/1024588?v=4","gravatar_id":"","url":"https://api.github.com/users/propensive","html_url":"https://github.com/propensive","followers_url":"https://api.github.com/users/propensive/followers","following_url":"https://api.github.com/users/propensive/following{/other_user}","gists_url":"https://api.github.com/users/propensive/gists{/gist_id}","starred_url":"https://api.github.com/users/propensive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/propensive/subscriptions","organizations_url":"https://api.github.com/users/propensive/orgs","repos_url":"https://api.github.com/users/propensive/repos","events_url":"https://api.github.com/users/propensive/events{/privacy}","received_events_url":"https://api.github.com/users/propensive/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/propensive/magnolia","description":"A better generic macro for Scala","fork":false,"url":"https://api.github.com/repos/propensive/magnolia","forks_url":"https://api.github.com/repos/propensive/magnolia/forks","keys_url":"https://api.github.com/repos/propensive/magnolia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/propensive/magnolia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/propensive/magnolia/teams","hooks_url":"https://api.github.com/repos/propensive/magnolia/hooks","issue_events_url":"https://api.github.com/repos/propensive/magnolia/issues/events{/number}","events_url":"https://api.github.com/repos/propensive/magnolia/events","assignees_url":"https://api.github.com/repos/propensive/magnolia/assignees{/user}","branches_url":"https://api.github.com/repos/propensive/magnolia/branches{/branch}","tags_url":"https://api.github.com/repos/propensive/magnolia/tags","blobs_url":"https://api.github.com/repos/propensive/magnolia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/propensive/magnolia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/propensive/magnolia/git/refs{/sha}","trees_url":"https://api.github.com/repos/propensive/magnolia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/propensive/magnolia/statuses/{sha}","languages_url":"https://api.github.com/repos/propensive/magnolia/languages","stargazers_url":"https://api.github.com/repos/propensive/magnolia/stargazers","contributors_url":"https://api.github.com/repos/propensive/magnolia/contributors","subscribers_url":"https://api.github.com/repos/propensive/magnolia/subscribers","subscription_url":"https://api.github.com/repos/propensive/magnolia/subscription","commits_url":"https://api.github.com/repos/propensive/magnolia/commits{/sha}","git_commits_url":"https://api.github.com/repos/propensive/magnolia/git/commits{/sha}","comments_url":"https://api.github.com/repos/propensive/magnolia/comments{/number}","issue_comment_url":"https://api.github.com/repos/propensive/magnolia/issues/comments{/number}","contents_url":"https://api.github.com/repos/propensive/magnolia/contents/{+path}","compare_url":"https://api.github.com/repos/propensive/magnolia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/propensive/magnolia/merges","archive_url":"https://api.github.com/repos/propensive/magnolia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/propensive/magnolia/downloads","issues_url":"https://api.github.com/repos/propensive/magnolia/issues{/number}","pulls_url":"https://api.github.com/repos/propensive/magnolia/pulls{/number}","milestones_url":"https://api.github.com/repos/propensive/magnolia/milestones{/number}","notifications_url":"https://api.github.com/repos/propensive/magnolia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/propensive/magnolia/labels{/name}","releases_url":"https://api.github.com/repos/propensive/magnolia/releases{/id}","deployments_url":"https://api.github.com/repos/propensive/magnolia/deployments","created_at":"2017-06-06T21:43:05Z","updated_at":"2018-08-03T14:50:26Z","pushed_at":"2018-08-03T14:55:56Z","git_url":"git://github.com/propensive/magnolia.git","ssh_url":"git@github.com:propensive/magnolia.git","clone_url":"https://github.com/propensive/magnolia.git","svn_url":"https://github.com/propensive/magnolia","homepage":null,"size":913,"stargazers_count":192,"watchers_count":192,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":33,"open_issues":35,"watchers":192,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/propensive/magnolia/pulls/120"},"html":{"href":"https://github.com/propensive/magnolia/pull/120"},"issue":{"href":"https://api.github.com/repos/propensive/magnolia/issues/120"},"comments":{"href":"https://api.github.com/repos/propensive/magnolia/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/propensive/magnolia/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/propensive/magnolia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/propensive/magnolia/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/propensive/magnolia/statuses/653908018e8dfa5b27505d57bbf218e5156b1cd9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"propensive"}}