Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka.Id is private #86

Closed
chenharryhua opened this issue Feb 18, 2019 · 2 comments
Closed

Kafka.Id is private #86

chenharryhua opened this issue Feb 18, 2019 · 2 comments

Comments

@chenharryhua
Copy link
Contributor

chenharryhua commented Feb 18, 2019

I failed to annotate the return type because Kafka.Id is private.

val k: ProducerMessage[kafka.Id, K, V, Unit] //compiler error: Symbol Id is inaccessible from this place
would it be better to use cats.Id instead?

@vlovgr
Copy link
Contributor

vlovgr commented Feb 19, 2019

Thanks for raising this @chenharryhua!

We cannot use cats.Id because the type parameter is invariant, while we need it to be covariant (type Id[+A] = A). I've raised #87 to make fs2.kafka.Id public, but in the meantime you can define it yourself if you want to.

@chenharryhua
Copy link
Contributor Author

Thanks. I am waiting for next release. Let intellij complain for a while. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants