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

implicit Tuple2K #3411

Open
johnynek opened this issue May 11, 2020 · 2 comments
Open

implicit Tuple2K #3411

johnynek opened this issue May 11, 2020 · 2 comments

Comments

@johnynek
Copy link
Contributor

johnynek commented May 11, 2020

It is useful in some contexts to have:

implicit def summonTuple2K[F[_], G[_], A](implicit fa: F[A], ga: G[A]): Tuple2K[F, G, A] =
  Tuple2K(fa, ga)

for cases where we are letting implicit resolution drive some computations.

Any reason this should not be in the companion for Tuple2K?

@djspiewak
Copy link
Member

I can't think of any harm in this. It's certainly not going to resolve the way you want it to in many cases, but for the cases where it doesn't resolve properly, I'm quite certain it doesn't break anything when it's on the companion.

@johnynek
Copy link
Contributor Author

johnynek commented Jul 2, 2020

BTW: @djspiewak can you give an example of it this not resolving the way you want? This seems to me to be quite natural.

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

No branches or pull requests

2 participants