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

Diverging implicit expansion for Show instances #553

Closed
vlovgr opened this issue Aug 6, 2018 · 2 comments
Closed

Diverging implicit expansion for Show instances #553

vlovgr opened this issue Aug 6, 2018 · 2 comments

Comments

@vlovgr
Copy link
Contributor

vlovgr commented Aug 6, 2018

The following code (ammonite):

import $ivy.`eu.timepit::refined-cats:0.9.2`
import cats.implicits._
import eu.timepit.refined.auto._
import eu.timepit.refined.cats._
import eu.timepit.refined.types.string.NonEmptyString

val s: NonEmptyString = "abc"

s.show

results in the following compile-time error.

diverging implicit expansion for type cats.Contravariant[G]
starting with method refTypeViaMonadError in package cats

Changing to import eu.timepit.refined.cats.refTypeShow makes the example compile.

fthomas added a commit that referenced this issue Aug 6, 2018
@fthomas
Copy link
Owner

fthomas commented Aug 6, 2018

Thanks for the report @vlovgr. I've started working on this in #554.

@fthomas
Copy link
Owner

fthomas commented Nov 3, 2018

Fixed by #554

@fthomas fthomas closed this as completed Nov 3, 2018
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