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

Derive [higher-kind] type-classes for DSLs with multiple type parameters #211

Closed
einepeople opened this issue Feb 16, 2021 · 0 comments · Fixed by #215
Closed

Derive [higher-kind] type-classes for DSLs with multiple type parameters #211

einepeople opened this issue Feb 16, 2021 · 0 comments · Fixed by #215

Comments

@einepeople
Copy link

Currently, derevo fails to derive, e.g. functorK, for traits, which are not in the form trait Foo[F[_]]{...}
Additional type parameters make it fail, for example, the following snippet:

@derive(functorK)
trait FooCache[F[_], K, V] {
  def get(key: K): F[Option[V]]
  def upsert(key: K, value: V): F[Unit]
  def invalidate(key: K): F[Unit]
}

will result in

wrong number of type arguments for org.package.FooCache, should be 3

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

Successfully merging a pull request may close this issue.

1 participant