{"action":"opened","issue":{"url":"https://api.github.com/repos/scodec/scodec-stream/issues/12","repository_url":"https://api.github.com/repos/scodec/scodec-stream","labels_url":"https://api.github.com/repos/scodec/scodec-stream/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/scodec/scodec-stream/issues/12/comments","events_url":"https://api.github.com/repos/scodec/scodec-stream/issues/12/events","html_url":"https://github.com/scodec/scodec-stream/issues/12","id":187562599,"number":12,"title":"encode.emit genericity","user":{"login":"durban","id":1568978,"avatar_url":"https://avatars.githubusercontent.com/u/1568978?v=3","gravatar_id":"","url":"https://api.github.com/users/durban","html_url":"https://github.com/durban","followers_url":"https://api.github.com/users/durban/followers","following_url":"https://api.github.com/users/durban/following{/other_user}","gists_url":"https://api.github.com/users/durban/gists{/gist_id}","starred_url":"https://api.github.com/users/durban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durban/subscriptions","organizations_url":"https://api.github.com/users/durban/orgs","repos_url":"https://api.github.com/users/durban/repos","events_url":"https://api.github.com/users/durban/events{/privacy}","received_events_url":"https://api.github.com/users/durban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-06T13:49:06Z","updated_at":"2016-11-06T13:49:06Z","closed_at":null,"body":"Is there any reason for [encode.emit](https://github.com/scodec/scodec-stream/blob/series/1.0.x/src/main/scala/scodec/stream/encode/package.scala#L38) to return a `StreamEncoder[Nothing]` instead of being generic and returning a `StreamEncoder[A]`? Wouldn't something like this work?\r\n```scala\r\n    def emit[A](bits: BitVector): StreamEncoder[A] = {\r\n      StreamEncoder.instance[A] { h =>\r\n        Pull.output1(bits) >> Pull.pure(h -> encode.empty[A])\r\n      }\r\n    }\r\n```"}}
{"actor":{"display_login":"durban"}}