{"action":"created","issue":{"url":"https://api.github.com/repos/http4s/rho/issues/216","repository_url":"https://api.github.com/repos/http4s/rho","labels_url":"https://api.github.com/repos/http4s/rho/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/http4s/rho/issues/216/comments","events_url":"https://api.github.com/repos/http4s/rho/issues/216/events","html_url":"https://github.com/http4s/rho/issues/216","id":294787342,"node_id":"MDU6SXNzdWUyOTQ3ODczNDI=","number":216,"title":"Implicit EntityEncoder for circe Encoder breaks compilation","user":{"login":"DStranger","id":1828565,"node_id":"MDQ6VXNlcjE4Mjg1NjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1828565?v=4","gravatar_id":"","url":"https://api.github.com/users/DStranger","html_url":"https://github.com/DStranger","followers_url":"https://api.github.com/users/DStranger/followers","following_url":"https://api.github.com/users/DStranger/following{/other_user}","gists_url":"https://api.github.com/users/DStranger/gists{/gist_id}","starred_url":"https://api.github.com/users/DStranger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DStranger/subscriptions","organizations_url":"https://api.github.com/users/DStranger/orgs","repos_url":"https://api.github.com/users/DStranger/repos","events_url":"https://api.github.com/users/DStranger/events{/privacy}","received_events_url":"https://api.github.com/users/DStranger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-02-06T14:51:58Z","updated_at":"2018-09-03T21:54:44Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi guys,\r\n\r\nThe following code doesn't compile with a `could not find implicit value for parameter hltf: org.http4s.rho.bits.HListToFunc[F,String :: shapeless.HNil,String => F[Test.this.Ok.T[String]]]`.\r\n```scala\r\nimport cats.effect.Effect\r\nimport io.circe.Encoder\r\nimport org.http4s._\r\nimport org.http4s.rho.RhoService\r\nimport org.http4s.rho.swagger.SwaggerSyntax\r\n\r\ntrait Auto\r\n\r\nclass Test[F[_]](swagger: SwaggerSyntax[F])(implicit E: Effect[F]) extends RhoService[F] {\r\n  import swagger._\r\n\r\n  private implicit def autoEncoder[A <: Auto: Encoder]: EntityEncoder[F, A] = ???\r\n\r\n  \"This route allows your to post stuff\" **\r\n    POST / \"post\" ^ EntityDecoder.text[F] |>> { body: String =>\r\n      Ok(\"you posted \" + body)\r\n  }\r\n}\r\n```\r\n\r\nRemoving `autoEncoder`, or removing the `io.circe.Encoder` constraint fixes the problem."},"comment":{"url":"https://api.github.com/repos/http4s/rho/issues/comments/418197548","html_url":"https://github.com/http4s/rho/issues/216#issuecomment-418197548","issue_url":"https://api.github.com/repos/http4s/rho/issues/216","id":418197548,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODE5NzU0OA==","user":{"login":"SystemFw","id":7769582,"node_id":"MDQ6VXNlcjc3Njk1ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/7769582?v=4","gravatar_id":"","url":"https://api.github.com/users/SystemFw","html_url":"https://github.com/SystemFw","followers_url":"https://api.github.com/users/SystemFw/followers","following_url":"https://api.github.com/users/SystemFw/following{/other_user}","gists_url":"https://api.github.com/users/SystemFw/gists{/gist_id}","starred_url":"https://api.github.com/users/SystemFw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SystemFw/subscriptions","organizations_url":"https://api.github.com/users/SystemFw/orgs","repos_url":"https://api.github.com/users/SystemFw/repos","events_url":"https://api.github.com/users/SystemFw/events{/privacy}","received_events_url":"https://api.github.com/users/SystemFw/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T21:54:44Z","updated_at":"2018-09-03T21:54:44Z","author_association":"NONE","body":"Perhaps someone can open a PR to the `rho` docs for this?"}}
{"actor":{"display_login":"SystemFw"}}