{"action":"created","comment":{"url":"https://api.github.com/repos/kailuowang/henkan/pulls/comments/89372346","pull_request_review_id":9918676,"id":89372346,"diff_hunk":"@@ -43,17 +43,24 @@ trait MkToOptional0 extends MkToOptional1 {\n     def apply(from: FL): HNil = HNil\n   }\n \n-  implicit def mkConToOptional[FL <: HList, K, V, TL <: HList](\n+  implicit def mkConToOptional[FL <: HList, K, V, FV, TL <: HList](\n     implicit\n     tailConvert: ToOptional[FL, TL],\n-    headConvert: ToOptional[FL, FieldType[K, Option[V]]]\n-  ): ToOptional[FL, FieldType[K, Option[V]] :: TL] = new ToOptional[FL, FieldType[K, Option[V]] :: TL] {\n+    headConvert: ToOptional[FL, FieldType[K, FV]]\n+  ): ToOptional[FL, FieldType[K, FV] :: TL] = new ToOptional[FL, FieldType[K, FV] :: TL] {\n \n-    def apply(from: FL): FieldType[K, Option[V]] :: TL = {\n+    def apply(from: FL): FieldType[K, FV] :: TL = {\n       headConvert(from) :: tailConvert(from)\n     }\n   }\n \n+  implicit def mkSingleRequiredToRequired[FL <: HList, K, V](\n+    implicit","path":"optional/src/main/scala/henkan/optional/ToOptional.scala","position":20,"original_position":20,"commit_id":"fd5dfea5b2df9ee8ee50296b37d1b43a036be721","original_commit_id":"fd5dfea5b2df9ee8ee50296b37d1b43a036be721","user":{"login":"joyfulvillage","id":2357899,"avatar_url":"https://avatars.githubusercontent.com/u/2357899?v=3","gravatar_id":"","url":"https://api.github.com/users/joyfulvillage","html_url":"https://github.com/joyfulvillage","followers_url":"https://api.github.com/users/joyfulvillage/followers","following_url":"https://api.github.com/users/joyfulvillage/following{/other_user}","gists_url":"https://api.github.com/users/joyfulvillage/gists{/gist_id}","starred_url":"https://api.github.com/users/joyfulvillage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyfulvillage/subscriptions","organizations_url":"https://api.github.com/users/joyfulvillage/orgs","repos_url":"https://api.github.com/users/joyfulvillage/repos","events_url":"https://api.github.com/users/joyfulvillage/events{/privacy}","received_events_url":"https://api.github.com/users/joyfulvillage/received_events","type":"User","site_admin":false},"body":"extra line break?","created_at":"2016-11-23T18:18:03Z","updated_at":"2016-11-23T18:18:03Z","html_url":"https://github.com/kailuowang/henkan/pull/30#discussion_r89372346","pull_request_url":"https://api.github.com/repos/kailuowang/henkan/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/kailuowang/henkan/pulls/comments/89372346"},"html":{"href":"https://github.com/kailuowang/henkan/pull/30#discussion_r89372346"},"pull_request":{"href":"https://api.github.com/repos/kailuowang/henkan/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/kailuowang/henkan/pulls/30","id":95046816,"html_url":"https://github.com/kailuowang/henkan/pull/30","diff_url":"https://github.com/kailuowang/henkan/pull/30.diff","patch_url":"https://github.com/kailuowang/henkan/pull/30.patch","issue_url":"https://api.github.com/repos/kailuowang/henkan/issues/30","number":30,"state":"open","locked":false,"title":"enhanced toOptional to simply transfer matching field","user":{"login":"kailuowang","id":83257,"avatar_url":"https://avatars.githubusercontent.com/u/83257?v=3","gravatar_id":"","url":"https://api.github.com/users/kailuowang","html_url":"https://github.com/kailuowang","followers_url":"https://api.github.com/users/kailuowang/followers","following_url":"https://api.github.com/users/kailuowang/following{/other_user}","gists_url":"https://api.github.com/users/kailuowang/gists{/gist_id}","starred_url":"https://api.github.com/users/kailuowang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kailuowang/subscriptions","organizations_url":"https://api.github.com/users/kailuowang/orgs","repos_url":"https://api.github.com/users/kailuowang/repos","events_url":"https://api.github.com/users/kailuowang/events{/privacy}","received_events_url":"https://api.github.com/users/kailuowang/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-23T17:22:46Z","updated_at":"2016-11-23T18:18:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8159f365b46560f1fd318737b09c5e31f8620be8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kailuowang/henkan/pulls/30/commits","review_comments_url":"https://api.github.com/repos/kailuowang/henkan/pulls/30/comments","review_comment_url":"https://api.github.com/repos/kailuowang/henkan/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kailuowang/henkan/issues/30/comments","statuses_url":"https://api.github.com/repos/kailuowang/henkan/statuses/fd5dfea5b2df9ee8ee50296b37d1b43a036be721","head":{"label":"kailuowang:flexibleOptional","ref":"flexibleOptional","sha":"fd5dfea5b2df9ee8ee50296b37d1b43a036be721","user":{"login":"kailuowang","id":83257,"avatar_url":"https://avatars.githubusercontent.com/u/83257?v=3","gravatar_id":"","url":"https://api.github.com/users/kailuowang","html_url":"https://github.com/kailuowang","followers_url":"https://api.github.com/users/kailuowang/followers","following_url":"https://api.github.com/users/kailuowang/following{/other_user}","gists_url":"https://api.github.com/users/kailuowang/gists{/gist_id}","starred_url":"https://api.github.com/users/kailuowang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kailuowang/subscriptions","organizations_url":"https://api.github.com/users/kailuowang/orgs","repos_url":"https://api.github.com/users/kailuowang/repos","events_url":"https://api.github.com/users/kailuowang/events{/privacy}","received_events_url":"https://api.github.com/users/kailuowang/received_events","type":"User","site_admin":false},"repo":{"id":49801696,"name":"henkan","full_name":"kailuowang/henkan","owner":{"login":"kailuowang","id":83257,"avatar_url":"https://avatars.githubusercontent.com/u/83257?v=3","gravatar_id":"","url":"https://api.github.com/users/kailuowang","html_url":"https://github.com/kailuowang","followers_url":"https://api.github.com/users/kailuowang/followers","following_url":"https://api.github.com/users/kailuowang/following{/other_user}","gists_url":"https://api.github.com/users/kailuowang/gists{/gist_id}","starred_url":"https://api.github.com/users/kailuowang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kailuowang/subscriptions","organizations_url":"https://api.github.com/users/kailuowang/orgs","repos_url":"https://api.github.com/users/kailuowang/repos","events_url":"https://api.github.com/users/kailuowang/events{/privacy}","received_events_url":"https://api.github.com/users/kailuowang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kailuowang/henkan","description":"A small library to experiment generic functional programming with kittens, shapeless and cats.","fork":false,"url":"https://api.github.com/repos/kailuowang/henkan","forks_url":"https://api.github.com/repos/kailuowang/henkan/forks","keys_url":"https://api.github.com/repos/kailuowang/henkan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kailuowang/henkan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kailuowang/henkan/teams","hooks_url":"https://api.github.com/repos/kailuowang/henkan/hooks","issue_events_url":"https://api.github.com/repos/kailuowang/henkan/issues/events{/number}","events_url":"https://api.github.com/repos/kailuowang/henkan/events","assignees_url":"https://api.github.com/repos/kailuowang/henkan/assignees{/user}","branches_url":"https://api.github.com/repos/kailuowang/henkan/branches{/branch}","tags_url":"https://api.github.com/repos/kailuowang/henkan/tags","blobs_url":"https://api.github.com/repos/kailuowang/henkan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kailuowang/henkan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kailuowang/henkan/git/refs{/sha}","trees_url":"https://api.github.com/repos/kailuowang/henkan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kailuowang/henkan/statuses/{sha}","languages_url":"https://api.github.com/repos/kailuowang/henkan/languages","stargazers_url":"https://api.github.com/repos/kailuowang/henkan/stargazers","contributors_url":"https://api.github.com/repos/kailuowang/henkan/contributors","subscribers_url":"https://api.github.com/repos/kailuowang/henkan/subscribers","subscription_url":"https://api.github.com/repos/kailuowang/henkan/subscription","commits_url":"https://api.github.com/repos/kailuowang/henkan/commits{/sha}","git_commits_url":"https://api.github.com/repos/kailuowang/henkan/git/commits{/sha}","comments_url":"https://api.github.com/repos/kailuowang/henkan/comments{/number}","issue_comment_url":"https://api.github.com/repos/kailuowang/henkan/issues/comments{/number}","contents_url":"https://api.github.com/repos/kailuowang/henkan/contents/{+path}","compare_url":"https://api.github.com/repos/kailuowang/henkan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kailuowang/henkan/merges","archive_url":"https://api.github.com/repos/kailuowang/henkan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kailuowang/henkan/downloads","issues_url":"https://api.github.com/repos/kailuowang/henkan/issues{/number}","pulls_url":"https://api.github.com/repos/kailuowang/henkan/pulls{/number}","milestones_url":"https://api.github.com/repos/kailuowang/henkan/milestones{/number}","notifications_url":"https://api.github.com/repos/kailuowang/henkan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kailuowang/henkan/labels{/name}","releases_url":"https://api.github.com/repos/kailuowang/henkan/releases{/id}","deployments_url":"https://api.github.com/repos/kailuowang/henkan/deployments","created_at":"2016-01-17T03:41:02Z","updated_at":"2016-11-23T16:20:13Z","pushed_at":"2016-11-23T17:22:46Z","git_url":"git://github.com/kailuowang/henkan.git","ssh_url":"git@github.com:kailuowang/henkan.git","clone_url":"https://github.com/kailuowang/henkan.git","svn_url":"https://github.com/kailuowang/henkan","homepage":"","size":134,"stargazers_count":49,"watchers_count":49,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":49,"default_branch":"master"}},"base":{"label":"kailuowang:master","ref":"master","sha":"96af7bfe8b236d5e12993b76f614ca86916f6936","user":{"login":"kailuowang","id":83257,"avatar_url":"https://avatars.githubusercontent.com/u/83257?v=3","gravatar_id":"","url":"https://api.github.com/users/kailuowang","html_url":"https://github.com/kailuowang","followers_url":"https://api.github.com/users/kailuowang/followers","following_url":"https://api.github.com/users/kailuowang/following{/other_user}","gists_url":"https://api.github.com/users/kailuowang/gists{/gist_id}","starred_url":"https://api.github.com/users/kailuowang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kailuowang/subscriptions","organizations_url":"https://api.github.com/users/kailuowang/orgs","repos_url":"https://api.github.com/users/kailuowang/repos","events_url":"https://api.github.com/users/kailuowang/events{/privacy}","received_events_url":"https://api.github.com/users/kailuowang/received_events","type":"User","site_admin":false},"repo":{"id":49801696,"name":"henkan","full_name":"kailuowang/henkan","owner":{"login":"kailuowang","id":83257,"avatar_url":"https://avatars.githubusercontent.com/u/83257?v=3","gravatar_id":"","url":"https://api.github.com/users/kailuowang","html_url":"https://github.com/kailuowang","followers_url":"https://api.github.com/users/kailuowang/followers","following_url":"https://api.github.com/users/kailuowang/following{/other_user}","gists_url":"https://api.github.com/users/kailuowang/gists{/gist_id}","starred_url":"https://api.github.com/users/kailuowang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kailuowang/subscriptions","organizations_url":"https://api.github.com/users/kailuowang/orgs","repos_url":"https://api.github.com/users/kailuowang/repos","events_url":"https://api.github.com/users/kailuowang/events{/privacy}","received_events_url":"https://api.github.com/users/kailuowang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kailuowang/henkan","description":"A small library to experiment generic functional programming with kittens, shapeless and cats.","fork":false,"url":"https://api.github.com/repos/kailuowang/henkan","forks_url":"https://api.github.com/repos/kailuowang/henkan/forks","keys_url":"https://api.github.com/repos/kailuowang/henkan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kailuowang/henkan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kailuowang/henkan/teams","hooks_url":"https://api.github.com/repos/kailuowang/henkan/hooks","issue_events_url":"https://api.github.com/repos/kailuowang/henkan/issues/events{/number}","events_url":"https://api.github.com/repos/kailuowang/henkan/events","assignees_url":"https://api.github.com/repos/kailuowang/henkan/assignees{/user}","branches_url":"https://api.github.com/repos/kailuowang/henkan/branches{/branch}","tags_url":"https://api.github.com/repos/kailuowang/henkan/tags","blobs_url":"https://api.github.com/repos/kailuowang/henkan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kailuowang/henkan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kailuowang/henkan/git/refs{/sha}","trees_url":"https://api.github.com/repos/kailuowang/henkan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kailuowang/henkan/statuses/{sha}","languages_url":"https://api.github.com/repos/kailuowang/henkan/languages","stargazers_url":"https://api.github.com/repos/kailuowang/henkan/stargazers","contributors_url":"https://api.github.com/repos/kailuowang/henkan/contributors","subscribers_url":"https://api.github.com/repos/kailuowang/henkan/subscribers","subscription_url":"https://api.github.com/repos/kailuowang/henkan/subscription","commits_url":"https://api.github.com/repos/kailuowang/henkan/commits{/sha}","git_commits_url":"https://api.github.com/repos/kailuowang/henkan/git/commits{/sha}","comments_url":"https://api.github.com/repos/kailuowang/henkan/comments{/number}","issue_comment_url":"https://api.github.com/repos/kailuowang/henkan/issues/comments{/number}","contents_url":"https://api.github.com/repos/kailuowang/henkan/contents/{+path}","compare_url":"https://api.github.com/repos/kailuowang/henkan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kailuowang/henkan/merges","archive_url":"https://api.github.com/repos/kailuowang/henkan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kailuowang/henkan/downloads","issues_url":"https://api.github.com/repos/kailuowang/henkan/issues{/number}","pulls_url":"https://api.github.com/repos/kailuowang/henkan/pulls{/number}","milestones_url":"https://api.github.com/repos/kailuowang/henkan/milestones{/number}","notifications_url":"https://api.github.com/repos/kailuowang/henkan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kailuowang/henkan/labels{/name}","releases_url":"https://api.github.com/repos/kailuowang/henkan/releases{/id}","deployments_url":"https://api.github.com/repos/kailuowang/henkan/deployments","created_at":"2016-01-17T03:41:02Z","updated_at":"2016-11-23T16:20:13Z","pushed_at":"2016-11-23T17:22:46Z","git_url":"git://github.com/kailuowang/henkan.git","ssh_url":"git@github.com:kailuowang/henkan.git","clone_url":"https://github.com/kailuowang/henkan.git","svn_url":"https://github.com/kailuowang/henkan","homepage":"","size":134,"stargazers_count":49,"watchers_count":49,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kailuowang/henkan/pulls/30"},"html":{"href":"https://github.com/kailuowang/henkan/pull/30"},"issue":{"href":"https://api.github.com/repos/kailuowang/henkan/issues/30"},"comments":{"href":"https://api.github.com/repos/kailuowang/henkan/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/kailuowang/henkan/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/kailuowang/henkan/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kailuowang/henkan/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/kailuowang/henkan/statuses/fd5dfea5b2df9ee8ee50296b37d1b43a036be721"}}}}
{"actor":{"display_login":"joyfulvillage"}}