{"action":"created","comment":{"url":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/comments/244703783","pull_request_review_id":188636817,"id":244703783,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDcwMzc4Mw==","diff_hunk":"@@ -0,0 +1,72 @@\n+/*\n+ * Copyright 2018-2019 Fs2 Redis\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+\n+package com.github.gvolpe.fs2redis.codecs\n+\n+import cats._\n+import cats.implicits._\n+import org.scalacheck.{ Arbitrary, Prop }\n+import org.scalatest.FunSuite\n+import org.scalatest.prop.Checkers\n+\n+import scala.util.Try\n+\n+// Inspired by http://eed3si9n.com/herding-cats/Isomorphism.html\n+class IsoTests extends FunSuite with Checkers {\n+  import TestIsoInstances._\n+\n+  def arrowsEquality[A: Arbitrary, B: Eq](f: A => B, g: A => B): Prop =\n+    Prop.forAll { a: A =>\n+      Eq[B].eqv(f(a), g(a))\n+    }\n+\n+  // (iso.from compose iso.to) <-> identity[A]\n+  def isomorphism[A, B](implicit iso: Iso[A, B]): A => A =","path":"core/src/test/scala/com/github/gvolpe/fs2redis/codecs/IsoTests.scala","position":37,"original_position":37,"commit_id":"fcf1a6bb2b721f04e919fe6722efee886850809c","original_commit_id":"fcf1a6bb2b721f04e919fe6722efee886850809c","user":{"login":"kubukoz","id":894884,"node_id":"MDQ6VXNlcjg5NDg4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/894884?v=4","gravatar_id":"","url":"https://api.github.com/users/kubukoz","html_url":"https://github.com/kubukoz","followers_url":"https://api.github.com/users/kubukoz/followers","following_url":"https://api.github.com/users/kubukoz/following{/other_user}","gists_url":"https://api.github.com/users/kubukoz/gists{/gist_id}","starred_url":"https://api.github.com/users/kubukoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubukoz/subscriptions","organizations_url":"https://api.github.com/users/kubukoz/orgs","repos_url":"https://api.github.com/users/kubukoz/repos","events_url":"https://api.github.com/users/kubukoz/events{/privacy}","received_events_url":"https://api.github.com/users/kubukoz/received_events","type":"User","site_admin":false},"body":"Exactly what I was thinking :P","created_at":"2019-01-02T10:37:36Z","updated_at":"2019-01-02T10:37:36Z","html_url":"https://github.com/gvolpe/fs2-redis/pull/57#discussion_r244703783","pull_request_url":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/57","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/comments/244703783"},"html":{"href":"https://github.com/gvolpe/fs2-redis/pull/57#discussion_r244703783"},"pull_request":{"href":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/57"}},"in_reply_to_id":244686097},"pull_request":{"url":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/57","id":241663658,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxNjYzNjU4","html_url":"https://github.com/gvolpe/fs2-redis/pull/57","diff_url":"https://github.com/gvolpe/fs2-redis/pull/57.diff","patch_url":"https://github.com/gvolpe/fs2-redis/pull/57.patch","issue_url":"https://api.github.com/repos/gvolpe/fs2-redis/issues/57","number":57,"state":"open","locked":false,"title":"[Feature] - Codecs derivation based on an existing one","user":{"login":"gvolpe","id":443978,"node_id":"MDQ6VXNlcjQ0Mzk3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/443978?v=4","gravatar_id":"","url":"https://api.github.com/users/gvolpe","html_url":"https://github.com/gvolpe","followers_url":"https://api.github.com/users/gvolpe/followers","following_url":"https://api.github.com/users/gvolpe/following{/other_user}","gists_url":"https://api.github.com/users/gvolpe/gists{/gist_id}","starred_url":"https://api.github.com/users/gvolpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvolpe/subscriptions","organizations_url":"https://api.github.com/users/gvolpe/orgs","repos_url":"https://api.github.com/users/gvolpe/repos","events_url":"https://api.github.com/users/gvolpe/events{/privacy}","received_events_url":"https://api.github.com/users/gvolpe/received_events","type":"User","site_admin":false},"body":"closes #55 \r\n\r\nIntroducing utility to derive codecs from an existing one given ~an isomorphism~ a split-morphism between two types A and B.","created_at":"2019-01-02T02:33:55Z","updated_at":"2019-01-02T10:37:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0ff38e540c1fe2aa668745698b4ee3e28f3c0a6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/57/commits","review_comments_url":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/57/comments","review_comment_url":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gvolpe/fs2-redis/issues/57/comments","statuses_url":"https://api.github.com/repos/gvolpe/fs2-redis/statuses/fcf1a6bb2b721f04e919fe6722efee886850809c","head":{"label":"gvolpe:feature/codecs","ref":"feature/codecs","sha":"fcf1a6bb2b721f04e919fe6722efee886850809c","user":{"login":"gvolpe","id":443978,"node_id":"MDQ6VXNlcjQ0Mzk3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/443978?v=4","gravatar_id":"","url":"https://api.github.com/users/gvolpe","html_url":"https://github.com/gvolpe","followers_url":"https://api.github.com/users/gvolpe/followers","following_url":"https://api.github.com/users/gvolpe/following{/other_user}","gists_url":"https://api.github.com/users/gvolpe/gists{/gist_id}","starred_url":"https://api.github.com/users/gvolpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvolpe/subscriptions","organizations_url":"https://api.github.com/users/gvolpe/orgs","repos_url":"https://api.github.com/users/gvolpe/repos","events_url":"https://api.github.com/users/gvolpe/events{/privacy}","received_events_url":"https://api.github.com/users/gvolpe/received_events","type":"User","site_admin":false},"repo":{"id":137655323,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc2NTUzMjM=","name":"fs2-redis","full_name":"gvolpe/fs2-redis","private":false,"owner":{"login":"gvolpe","id":443978,"node_id":"MDQ6VXNlcjQ0Mzk3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/443978?v=4","gravatar_id":"","url":"https://api.github.com/users/gvolpe","html_url":"https://github.com/gvolpe","followers_url":"https://api.github.com/users/gvolpe/followers","following_url":"https://api.github.com/users/gvolpe/following{/other_user}","gists_url":"https://api.github.com/users/gvolpe/gists{/gist_id}","starred_url":"https://api.github.com/users/gvolpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvolpe/subscriptions","organizations_url":"https://api.github.com/users/gvolpe/orgs","repos_url":"https://api.github.com/users/gvolpe/repos","events_url":"https://api.github.com/users/gvolpe/events{/privacy}","received_events_url":"https://api.github.com/users/gvolpe/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gvolpe/fs2-redis","description":"Redis stream-based client built on top of Cats Effect, Fs2 and Lettuce","fork":false,"url":"https://api.github.com/repos/gvolpe/fs2-redis","forks_url":"https://api.github.com/repos/gvolpe/fs2-redis/forks","keys_url":"https://api.github.com/repos/gvolpe/fs2-redis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gvolpe/fs2-redis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gvolpe/fs2-redis/teams","hooks_url":"https://api.github.com/repos/gvolpe/fs2-redis/hooks","issue_events_url":"https://api.github.com/repos/gvolpe/fs2-redis/issues/events{/number}","events_url":"https://api.github.com/repos/gvolpe/fs2-redis/events","assignees_url":"https://api.github.com/repos/gvolpe/fs2-redis/assignees{/user}","branches_url":"https://api.github.com/repos/gvolpe/fs2-redis/branches{/branch}","tags_url":"https://api.github.com/repos/gvolpe/fs2-redis/tags","blobs_url":"https://api.github.com/repos/gvolpe/fs2-redis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gvolpe/fs2-redis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gvolpe/fs2-redis/git/refs{/sha}","trees_url":"https://api.github.com/repos/gvolpe/fs2-redis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gvolpe/fs2-redis/statuses/{sha}","languages_url":"https://api.github.com/repos/gvolpe/fs2-redis/languages","stargazers_url":"https://api.github.com/repos/gvolpe/fs2-redis/stargazers","contributors_url":"https://api.github.com/repos/gvolpe/fs2-redis/contributors","subscribers_url":"https://api.github.com/repos/gvolpe/fs2-redis/subscribers","subscription_url":"https://api.github.com/repos/gvolpe/fs2-redis/subscription","commits_url":"https://api.github.com/repos/gvolpe/fs2-redis/commits{/sha}","git_commits_url":"https://api.github.com/repos/gvolpe/fs2-redis/git/commits{/sha}","comments_url":"https://api.github.com/repos/gvolpe/fs2-redis/comments{/number}","issue_comment_url":"https://api.github.com/repos/gvolpe/fs2-redis/issues/comments{/number}","contents_url":"https://api.github.com/repos/gvolpe/fs2-redis/contents/{+path}","compare_url":"https://api.github.com/repos/gvolpe/fs2-redis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gvolpe/fs2-redis/merges","archive_url":"https://api.github.com/repos/gvolpe/fs2-redis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gvolpe/fs2-redis/downloads","issues_url":"https://api.github.com/repos/gvolpe/fs2-redis/issues{/number}","pulls_url":"https://api.github.com/repos/gvolpe/fs2-redis/pulls{/number}","milestones_url":"https://api.github.com/repos/gvolpe/fs2-redis/milestones{/number}","notifications_url":"https://api.github.com/repos/gvolpe/fs2-redis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gvolpe/fs2-redis/labels{/name}","releases_url":"https://api.github.com/repos/gvolpe/fs2-redis/releases{/id}","deployments_url":"https://api.github.com/repos/gvolpe/fs2-redis/deployments","created_at":"2018-06-17T13:00:52Z","updated_at":"2019-01-01T00:11:49Z","pushed_at":"2019-01-02T02:33:55Z","git_url":"git://github.com/gvolpe/fs2-redis.git","ssh_url":"git@github.com:gvolpe/fs2-redis.git","clone_url":"https://github.com/gvolpe/fs2-redis.git","svn_url":"https://github.com/gvolpe/fs2-redis","homepage":"https://gvolpe.github.io/fs2-redis/","size":1155,"stargazers_count":36,"watchers_count":36,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":3,"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":8,"open_issues":3,"watchers":36,"default_branch":"master"}},"base":{"label":"gvolpe:master","ref":"master","sha":"5997ca8bfe3fa2311690f04d761025186f2e3e14","user":{"login":"gvolpe","id":443978,"node_id":"MDQ6VXNlcjQ0Mzk3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/443978?v=4","gravatar_id":"","url":"https://api.github.com/users/gvolpe","html_url":"https://github.com/gvolpe","followers_url":"https://api.github.com/users/gvolpe/followers","following_url":"https://api.github.com/users/gvolpe/following{/other_user}","gists_url":"https://api.github.com/users/gvolpe/gists{/gist_id}","starred_url":"https://api.github.com/users/gvolpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvolpe/subscriptions","organizations_url":"https://api.github.com/users/gvolpe/orgs","repos_url":"https://api.github.com/users/gvolpe/repos","events_url":"https://api.github.com/users/gvolpe/events{/privacy}","received_events_url":"https://api.github.com/users/gvolpe/received_events","type":"User","site_admin":false},"repo":{"id":137655323,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc2NTUzMjM=","name":"fs2-redis","full_name":"gvolpe/fs2-redis","private":false,"owner":{"login":"gvolpe","id":443978,"node_id":"MDQ6VXNlcjQ0Mzk3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/443978?v=4","gravatar_id":"","url":"https://api.github.com/users/gvolpe","html_url":"https://github.com/gvolpe","followers_url":"https://api.github.com/users/gvolpe/followers","following_url":"https://api.github.com/users/gvolpe/following{/other_user}","gists_url":"https://api.github.com/users/gvolpe/gists{/gist_id}","starred_url":"https://api.github.com/users/gvolpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvolpe/subscriptions","organizations_url":"https://api.github.com/users/gvolpe/orgs","repos_url":"https://api.github.com/users/gvolpe/repos","events_url":"https://api.github.com/users/gvolpe/events{/privacy}","received_events_url":"https://api.github.com/users/gvolpe/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gvolpe/fs2-redis","description":"Redis stream-based client built on top of Cats Effect, Fs2 and Lettuce","fork":false,"url":"https://api.github.com/repos/gvolpe/fs2-redis","forks_url":"https://api.github.com/repos/gvolpe/fs2-redis/forks","keys_url":"https://api.github.com/repos/gvolpe/fs2-redis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gvolpe/fs2-redis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gvolpe/fs2-redis/teams","hooks_url":"https://api.github.com/repos/gvolpe/fs2-redis/hooks","issue_events_url":"https://api.github.com/repos/gvolpe/fs2-redis/issues/events{/number}","events_url":"https://api.github.com/repos/gvolpe/fs2-redis/events","assignees_url":"https://api.github.com/repos/gvolpe/fs2-redis/assignees{/user}","branches_url":"https://api.github.com/repos/gvolpe/fs2-redis/branches{/branch}","tags_url":"https://api.github.com/repos/gvolpe/fs2-redis/tags","blobs_url":"https://api.github.com/repos/gvolpe/fs2-redis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gvolpe/fs2-redis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gvolpe/fs2-redis/git/refs{/sha}","trees_url":"https://api.github.com/repos/gvolpe/fs2-redis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gvolpe/fs2-redis/statuses/{sha}","languages_url":"https://api.github.com/repos/gvolpe/fs2-redis/languages","stargazers_url":"https://api.github.com/repos/gvolpe/fs2-redis/stargazers","contributors_url":"https://api.github.com/repos/gvolpe/fs2-redis/contributors","subscribers_url":"https://api.github.com/repos/gvolpe/fs2-redis/subscribers","subscription_url":"https://api.github.com/repos/gvolpe/fs2-redis/subscription","commits_url":"https://api.github.com/repos/gvolpe/fs2-redis/commits{/sha}","git_commits_url":"https://api.github.com/repos/gvolpe/fs2-redis/git/commits{/sha}","comments_url":"https://api.github.com/repos/gvolpe/fs2-redis/comments{/number}","issue_comment_url":"https://api.github.com/repos/gvolpe/fs2-redis/issues/comments{/number}","contents_url":"https://api.github.com/repos/gvolpe/fs2-redis/contents/{+path}","compare_url":"https://api.github.com/repos/gvolpe/fs2-redis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gvolpe/fs2-redis/merges","archive_url":"https://api.github.com/repos/gvolpe/fs2-redis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gvolpe/fs2-redis/downloads","issues_url":"https://api.github.com/repos/gvolpe/fs2-redis/issues{/number}","pulls_url":"https://api.github.com/repos/gvolpe/fs2-redis/pulls{/number}","milestones_url":"https://api.github.com/repos/gvolpe/fs2-redis/milestones{/number}","notifications_url":"https://api.github.com/repos/gvolpe/fs2-redis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gvolpe/fs2-redis/labels{/name}","releases_url":"https://api.github.com/repos/gvolpe/fs2-redis/releases{/id}","deployments_url":"https://api.github.com/repos/gvolpe/fs2-redis/deployments","created_at":"2018-06-17T13:00:52Z","updated_at":"2019-01-01T00:11:49Z","pushed_at":"2019-01-02T02:33:55Z","git_url":"git://github.com/gvolpe/fs2-redis.git","ssh_url":"git@github.com:gvolpe/fs2-redis.git","clone_url":"https://github.com/gvolpe/fs2-redis.git","svn_url":"https://github.com/gvolpe/fs2-redis","homepage":"https://gvolpe.github.io/fs2-redis/","size":1155,"stargazers_count":36,"watchers_count":36,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":3,"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":8,"open_issues":3,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/57"},"html":{"href":"https://github.com/gvolpe/fs2-redis/pull/57"},"issue":{"href":"https://api.github.com/repos/gvolpe/fs2-redis/issues/57"},"comments":{"href":"https://api.github.com/repos/gvolpe/fs2-redis/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gvolpe/fs2-redis/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/gvolpe/fs2-redis/statuses/fcf1a6bb2b721f04e919fe6722efee886850809c"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kubukoz"}}