-
Notifications
You must be signed in to change notification settings - Fork 26
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
How to get a Map
instance from Guava Funnel?
#904
Comments
Hi @LeifW, sorry for the late answer. implicitly[Funnel[(String, String)]] won't work with FunnelDerivation[(String, String)] Concerning the implicit conflict for |
I'm used to "codec"s for thing in the stdlib (like tuples) already being included in a library like this out of the box - without having to "derive" them. E.g. circe generates codecs for Tuples 1-22 here: https://github.com/circe/circe/blob/series/0.14.x/project/Boilerplate.scala#L157 |
Ok I get it now. We handle tuple like other generic products instead of providing a default implicit. If we add those, we should do the same in all I think it is worth a discussion and gathering other opinion before you get started :) cc: @spotify/flatmap |
I assume it'd go through
iterableFunnel
, but I can't seem to make the types work (e.g. that expects the collection to have a single type param).Just trying to get it to encode a tuple or collection of tuples seems challenging.
fails to find and instance with
semiauto._
in scope.With
auto._
in scope,gets "ambiguous implicit values":
The text was updated successfully, but these errors were encountered: