-
Notifications
You must be signed in to change notification settings - Fork 66
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
Upgrade ZIO Interop Cats Effect 3 to ZIO 2.0.0-RC1 #476
Conversation
@@ -64,9 +62,12 @@ private[zio] trait CatsSpecBase | |||
case infinite: Infinite => | |||
ZIO.dieMessage(s"Unexpected infinite duration $infinite passed to Ticker") | |||
} | |||
|
|||
def scheduler(implicit trace: ZTraceElement): UIO[Scheduler] = | |||
??? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is part of the interface of Clock
in ZIO 2.0 so we need to honor the contract though like some of the other methods above it will never be called in tests so we don't actually have to implement it.
import zio.internal.stacktracer.InteropTracer | ||
|
||
abstract class CatsMtlPlatform extends CatsMtlInstances | ||
|
||
abstract class CatsMtlInstances { | ||
|
||
implicit def zioLocal[R, E](implicit ev: Applicative[ZIO[R, E, _]]): Local[ZIO[R, E, _], R] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adamgfraser just wondering, why was this and the Ask
instance removed? can they not be implemented with ZIO 2.x?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lacarvalho91 It can be implemented but needs to build in the ZEnvironment
. See #662.
No description provided.