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

Add Compose and Bicompose? #900

Closed
adelbertc opened this issue Feb 25, 2016 · 2 comments
Closed

Add Compose and Bicompose? #900

adelbertc opened this issue Feb 25, 2016 · 2 comments

Comments

@adelbertc
Copy link
Contributor

final case class Compose[F[_], G[_], A](value: F[G[A]]) extends AnyVal

Defining instances on Compose instead of having things like Functor#compose which requires

  1. Getting an instance by doing something like implicit val instance = Functor[Option].compose[List]
  2. Explicitly needing to pass in the instance, otherwise scalac will resolve to just the outer one
@adelbertc
Copy link
Contributor Author

(This would also make it consistent with how we treat product composition via Prod)

@adelbertc
Copy link
Contributor Author

Closing in favor of #968

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

1 participant