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 extension for UIO when importing cats instances #20

Closed
Katrix opened this issue Jun 8, 2019 · 1 comment · Fixed by #28
Closed

Diverging implicit extension for UIO when importing cats instances #20

Katrix opened this issue Jun 8, 2019 · 1 comment · Fixed by #28
Labels
bug Something isn't working invalid This doesn't seem right question Further information is requested

Comments

@Katrix
Copy link

Katrix commented Jun 8, 2019

Scala will fail to compile code like this.

import cats.Monad
import cats.instances.either._
import scalaz.zio._
import scalaz.zio.interop.catz._

class ZIODiveringTest {
  Monad[UIO]
}

Removing the import for the either allows it to compile. Also works with option's instances. Does not happen for some reason when importing all instances.

Here is the error gotten

[error] D:\DevProjects\Stable\Ore\ore\app\ZIODiveringTest.scala:7:8: diverging implicit expansion for type cats.Monad[scalaz.zio.UIO]
[error] starting with method monoidZManagedInstances in trait CatsZManagedInstances
[error]   Monad[UIO]
[error]        ^
@ghostdogpr ghostdogpr transferred this issue from zio/zio Jul 30, 2019
@neko-kai neko-kai added invalid This doesn't seem right question Further information is requested bug Something isn't working labels Jul 30, 2019
@joroKr21
Copy link
Contributor

joroKr21 commented Aug 3, 2019

This is fixed by #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants