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

Avoid defining names which easily clash #21

Closed
carymrobbins opened this issue Apr 18, 2018 · 1 comment
Closed

Avoid defining names which easily clash #21

carymrobbins opened this issue Apr 18, 2018 · 1 comment

Comments

@carymrobbins
Copy link
Member

This doesn't compile due to the use of T as a type param in the generated deriving method -

@newtype case class CanDerive[F[_], R, T](value: F[T])

Generates this method -

def deriving[T[_], F[_], R, T](implicit ev: T[Repr[F, R, T]]): T[Type[F, R, T]] = ev.asInstanceOf[T[Type[F, R, T]]]

We should go through the methods and make sure we use unique names, either by suffixing with $ or using something like c.freshName.

@carymrobbins
Copy link
Member Author

This will be fixed in the v0.4.0 release.

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