{"action":"created","comment":{"url":"https://api.github.com/repos/CommBank/omnitool/pulls/comments/42570190","id":42570190,"diff_hunk":"@@ -0,0 +1,72 @@\n+//   Copyright 2015 Commonwealth Bank of Australia\n+//\n+//   Licensed under the Apache License, Version 2.0 (the \"License\");\n+//   you may not use this file except in compliance with the License.\n+//   You may obtain a copy of the License at\n+//\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+//\n+//   Unless required by applicable law or agreed to in writing, software\n+//   distributed under the License is distributed on an \"AS IS\" BASIS,\n+//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+//   See the License for the specific language governing permissions and\n+//   limitations under the License.\n+\n+package au.com.cba.omnia.omnitool\n+\n+import scalaz.{Monad, Id}\n+import scalaz.Scalaz.Id\n+\n+/** Base trait for relative monads. Defines `M` relative to `R`.\n+  *\n+  * Typically a number of `R`s will be made relative to a single `M` such that\n+  * operations of each type `R[A]` can be viewed and composed as an `M[A]`.\n+  * ","path":"core/src/main/scala/au/com/cba/omnia/omnitool/RelMonad.scala","position":24,"original_position":24,"commit_id":"2d164aa1c33e542b5ea303c3aa07b3b6752226ee","original_commit_id":"2d164aa1c33e542b5ea303c3aa07b3b6752226ee","user":{"login":"rowandavies","id":468519,"avatar_url":"https://avatars.githubusercontent.com/u/468519?v=3","gravatar_id":"","url":"https://api.github.com/users/rowandavies","html_url":"https://github.com/rowandavies","followers_url":"https://api.github.com/users/rowandavies/followers","following_url":"https://api.github.com/users/rowandavies/following{/other_user}","gists_url":"https://api.github.com/users/rowandavies/gists{/gist_id}","starred_url":"https://api.github.com/users/rowandavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowandavies/subscriptions","organizations_url":"https://api.github.com/users/rowandavies/orgs","repos_url":"https://api.github.com/users/rowandavies/repos","events_url":"https://api.github.com/users/rowandavies/events{/privacy}","received_events_url":"https://api.github.com/users/rowandavies/received_events","type":"User","site_admin":false},"body":"I'd say: `Often we compose operations from one or more simple R's by choosing an actual complicated M that has relative instances from each R.` ","created_at":"2015-10-21T00:00:28Z","updated_at":"2015-10-21T00:00:28Z","html_url":"https://github.com/CommBank/omnitool/pull/25#discussion_r42570190","pull_request_url":"https://api.github.com/repos/CommBank/omnitool/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/CommBank/omnitool/pulls/comments/42570190"},"html":{"href":"https://github.com/CommBank/omnitool/pull/25#discussion_r42570190"},"pull_request":{"href":"https://api.github.com/repos/CommBank/omnitool/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/CommBank/omnitool/pulls/25","id":48029612,"html_url":"https://github.com/CommBank/omnitool/pull/25","diff_url":"https://github.com/CommBank/omnitool/pull/25.diff","patch_url":"https://github.com/CommBank/omnitool/pull/25.patch","issue_url":"https://api.github.com/repos/CommBank/omnitool/issues/25","number":25,"state":"open","locked":false,"title":"Add relative monad","user":{"login":"shmookey","id":2177430,"avatar_url":"https://avatars.githubusercontent.com/u/2177430?v=3","gravatar_id":"","url":"https://api.github.com/users/shmookey","html_url":"https://github.com/shmookey","followers_url":"https://api.github.com/users/shmookey/followers","following_url":"https://api.github.com/users/shmookey/following{/other_user}","gists_url":"https://api.github.com/users/shmookey/gists{/gist_id}","starred_url":"https://api.github.com/users/shmookey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmookey/subscriptions","organizations_url":"https://api.github.com/users/shmookey/orgs","repos_url":"https://api.github.com/users/shmookey/repos","events_url":"https://api.github.com/users/shmookey/events{/privacy}","received_events_url":"https://api.github.com/users/shmookey/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-19T04:03:43Z","updated_at":"2015-10-21T00:00:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"467776a0ed582cb8b54a90e68f3b5577b2298c2f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CommBank/omnitool/pulls/25/commits","review_comments_url":"https://api.github.com/repos/CommBank/omnitool/pulls/25/comments","review_comment_url":"https://api.github.com/repos/CommBank/omnitool/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CommBank/omnitool/issues/25/comments","statuses_url":"https://api.github.com/repos/CommBank/omnitool/statuses/2d164aa1c33e542b5ea303c3aa07b3b6752226ee","head":{"label":"CommBank:relative-monad","ref":"relative-monad","sha":"2d164aa1c33e542b5ea303c3aa07b3b6752226ee","user":{"login":"CommBank","id":4240076,"avatar_url":"https://avatars.githubusercontent.com/u/4240076?v=3","gravatar_id":"","url":"https://api.github.com/users/CommBank","html_url":"https://github.com/CommBank","followers_url":"https://api.github.com/users/CommBank/followers","following_url":"https://api.github.com/users/CommBank/following{/other_user}","gists_url":"https://api.github.com/users/CommBank/gists{/gist_id}","starred_url":"https://api.github.com/users/CommBank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CommBank/subscriptions","organizations_url":"https://api.github.com/users/CommBank/orgs","repos_url":"https://api.github.com/users/CommBank/repos","events_url":"https://api.github.com/users/CommBank/events{/privacy}","received_events_url":"https://api.github.com/users/CommBank/received_events","type":"Organization","site_admin":false},"repo":{"id":20393758,"name":"omnitool","full_name":"CommBank/omnitool","owner":{"login":"CommBank","id":4240076,"avatar_url":"https://avatars.githubusercontent.com/u/4240076?v=3","gravatar_id":"","url":"https://api.github.com/users/CommBank","html_url":"https://github.com/CommBank","followers_url":"https://api.github.com/users/CommBank/followers","following_url":"https://api.github.com/users/CommBank/following{/other_user}","gists_url":"https://api.github.com/users/CommBank/gists{/gist_id}","starred_url":"https://api.github.com/users/CommBank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CommBank/subscriptions","organizations_url":"https://api.github.com/users/CommBank/orgs","repos_url":"https://api.github.com/users/CommBank/repos","events_url":"https://api.github.com/users/CommBank/events{/privacy}","received_events_url":"https://api.github.com/users/CommBank/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CommBank/omnitool","description":"Scala utility library","fork":false,"url":"https://api.github.com/repos/CommBank/omnitool","forks_url":"https://api.github.com/repos/CommBank/omnitool/forks","keys_url":"https://api.github.com/repos/CommBank/omnitool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CommBank/omnitool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CommBank/omnitool/teams","hooks_url":"https://api.github.com/repos/CommBank/omnitool/hooks","issue_events_url":"https://api.github.com/repos/CommBank/omnitool/issues/events{/number}","events_url":"https://api.github.com/repos/CommBank/omnitool/events","assignees_url":"https://api.github.com/repos/CommBank/omnitool/assignees{/user}","branches_url":"https://api.github.com/repos/CommBank/omnitool/branches{/branch}","tags_url":"https://api.github.com/repos/CommBank/omnitool/tags","blobs_url":"https://api.github.com/repos/CommBank/omnitool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CommBank/omnitool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CommBank/omnitool/git/refs{/sha}","trees_url":"https://api.github.com/repos/CommBank/omnitool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CommBank/omnitool/statuses/{sha}","languages_url":"https://api.github.com/repos/CommBank/omnitool/languages","stargazers_url":"https://api.github.com/repos/CommBank/omnitool/stargazers","contributors_url":"https://api.github.com/repos/CommBank/omnitool/contributors","subscribers_url":"https://api.github.com/repos/CommBank/omnitool/subscribers","subscription_url":"https://api.github.com/repos/CommBank/omnitool/subscription","commits_url":"https://api.github.com/repos/CommBank/omnitool/commits{/sha}","git_commits_url":"https://api.github.com/repos/CommBank/omnitool/git/commits{/sha}","comments_url":"https://api.github.com/repos/CommBank/omnitool/comments{/number}","issue_comment_url":"https://api.github.com/repos/CommBank/omnitool/issues/comments{/number}","contents_url":"https://api.github.com/repos/CommBank/omnitool/contents/{+path}","compare_url":"https://api.github.com/repos/CommBank/omnitool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CommBank/omnitool/merges","archive_url":"https://api.github.com/repos/CommBank/omnitool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CommBank/omnitool/downloads","issues_url":"https://api.github.com/repos/CommBank/omnitool/issues{/number}","pulls_url":"https://api.github.com/repos/CommBank/omnitool/pulls{/number}","milestones_url":"https://api.github.com/repos/CommBank/omnitool/milestones{/number}","notifications_url":"https://api.github.com/repos/CommBank/omnitool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CommBank/omnitool/labels{/name}","releases_url":"https://api.github.com/repos/CommBank/omnitool/releases{/id}","created_at":"2014-06-02T05:07:08Z","updated_at":"2015-08-16T00:33:47Z","pushed_at":"2015-10-19T05:09:20Z","git_url":"git://github.com/CommBank/omnitool.git","ssh_url":"git@github.com:CommBank/omnitool.git","clone_url":"https://github.com/CommBank/omnitool.git","svn_url":"https://github.com/CommBank/omnitool","homepage":"https://commbank.github.io/omnitool","size":3091,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"CommBank:master","ref":"master","sha":"9c8580f6b060f0fa2fbb43a508bc83f451b3a698","user":{"login":"CommBank","id":4240076,"avatar_url":"https://avatars.githubusercontent.com/u/4240076?v=3","gravatar_id":"","url":"https://api.github.com/users/CommBank","html_url":"https://github.com/CommBank","followers_url":"https://api.github.com/users/CommBank/followers","following_url":"https://api.github.com/users/CommBank/following{/other_user}","gists_url":"https://api.github.com/users/CommBank/gists{/gist_id}","starred_url":"https://api.github.com/users/CommBank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CommBank/subscriptions","organizations_url":"https://api.github.com/users/CommBank/orgs","repos_url":"https://api.github.com/users/CommBank/repos","events_url":"https://api.github.com/users/CommBank/events{/privacy}","received_events_url":"https://api.github.com/users/CommBank/received_events","type":"Organization","site_admin":false},"repo":{"id":20393758,"name":"omnitool","full_name":"CommBank/omnitool","owner":{"login":"CommBank","id":4240076,"avatar_url":"https://avatars.githubusercontent.com/u/4240076?v=3","gravatar_id":"","url":"https://api.github.com/users/CommBank","html_url":"https://github.com/CommBank","followers_url":"https://api.github.com/users/CommBank/followers","following_url":"https://api.github.com/users/CommBank/following{/other_user}","gists_url":"https://api.github.com/users/CommBank/gists{/gist_id}","starred_url":"https://api.github.com/users/CommBank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CommBank/subscriptions","organizations_url":"https://api.github.com/users/CommBank/orgs","repos_url":"https://api.github.com/users/CommBank/repos","events_url":"https://api.github.com/users/CommBank/events{/privacy}","received_events_url":"https://api.github.com/users/CommBank/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CommBank/omnitool","description":"Scala utility library","fork":false,"url":"https://api.github.com/repos/CommBank/omnitool","forks_url":"https://api.github.com/repos/CommBank/omnitool/forks","keys_url":"https://api.github.com/repos/CommBank/omnitool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CommBank/omnitool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CommBank/omnitool/teams","hooks_url":"https://api.github.com/repos/CommBank/omnitool/hooks","issue_events_url":"https://api.github.com/repos/CommBank/omnitool/issues/events{/number}","events_url":"https://api.github.com/repos/CommBank/omnitool/events","assignees_url":"https://api.github.com/repos/CommBank/omnitool/assignees{/user}","branches_url":"https://api.github.com/repos/CommBank/omnitool/branches{/branch}","tags_url":"https://api.github.com/repos/CommBank/omnitool/tags","blobs_url":"https://api.github.com/repos/CommBank/omnitool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CommBank/omnitool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CommBank/omnitool/git/refs{/sha}","trees_url":"https://api.github.com/repos/CommBank/omnitool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CommBank/omnitool/statuses/{sha}","languages_url":"https://api.github.com/repos/CommBank/omnitool/languages","stargazers_url":"https://api.github.com/repos/CommBank/omnitool/stargazers","contributors_url":"https://api.github.com/repos/CommBank/omnitool/contributors","subscribers_url":"https://api.github.com/repos/CommBank/omnitool/subscribers","subscription_url":"https://api.github.com/repos/CommBank/omnitool/subscription","commits_url":"https://api.github.com/repos/CommBank/omnitool/commits{/sha}","git_commits_url":"https://api.github.com/repos/CommBank/omnitool/git/commits{/sha}","comments_url":"https://api.github.com/repos/CommBank/omnitool/comments{/number}","issue_comment_url":"https://api.github.com/repos/CommBank/omnitool/issues/comments{/number}","contents_url":"https://api.github.com/repos/CommBank/omnitool/contents/{+path}","compare_url":"https://api.github.com/repos/CommBank/omnitool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CommBank/omnitool/merges","archive_url":"https://api.github.com/repos/CommBank/omnitool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CommBank/omnitool/downloads","issues_url":"https://api.github.com/repos/CommBank/omnitool/issues{/number}","pulls_url":"https://api.github.com/repos/CommBank/omnitool/pulls{/number}","milestones_url":"https://api.github.com/repos/CommBank/omnitool/milestones{/number}","notifications_url":"https://api.github.com/repos/CommBank/omnitool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CommBank/omnitool/labels{/name}","releases_url":"https://api.github.com/repos/CommBank/omnitool/releases{/id}","created_at":"2014-06-02T05:07:08Z","updated_at":"2015-08-16T00:33:47Z","pushed_at":"2015-10-19T05:09:20Z","git_url":"git://github.com/CommBank/omnitool.git","ssh_url":"git@github.com:CommBank/omnitool.git","clone_url":"https://github.com/CommBank/omnitool.git","svn_url":"https://github.com/CommBank/omnitool","homepage":"https://commbank.github.io/omnitool","size":3091,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CommBank/omnitool/pulls/25"},"html":{"href":"https://github.com/CommBank/omnitool/pull/25"},"issue":{"href":"https://api.github.com/repos/CommBank/omnitool/issues/25"},"comments":{"href":"https://api.github.com/repos/CommBank/omnitool/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/CommBank/omnitool/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/CommBank/omnitool/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CommBank/omnitool/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/CommBank/omnitool/statuses/2d164aa1c33e542b5ea303c3aa07b3b6752226ee"}}}}