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

Upgrade ZIO Interop Cats Effect 3 to ZIO 2.0.0-RC1 #476

Merged
merged 5 commits into from
Dec 16, 2021
Merged

Upgrade ZIO Interop Cats Effect 3 to ZIO 2.0.0-RC1 #476

merged 5 commits into from
Dec 16, 2021

Conversation

adamgfraser
Copy link
Contributor

No description provided.

@@ -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] =
???
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed?

Copy link
Contributor Author

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.

@adamgfraser adamgfraser merged commit fdd9caa into zio:zio2-interop-ce3 Dec 16, 2021
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] =
Copy link
Contributor

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?

Copy link
Contributor Author

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.

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 this pull request may close these issues.

3 participants