Skip to content

Commit

Permalink
upgrade zio version (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgfraser authored Jan 30, 2022
1 parent ecaf3c7 commit 2fc2126
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ addCommandAlias(
";lawsNative/test;experimentalLawsNative/test" // `test` currently executes only compilation, see `nativeSettings` in `BuildHelper`
)

val zioVersion = "2.0.0-RC1"
val zioVersion = "2.0.0-RC2"

lazy val root = project
.in(file("."))
Expand Down
8 changes: 4 additions & 4 deletions core/shared/src/main/scala/zio/prelude/fx/ZPure.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package zio.prelude.fx
import com.github.ghik.silencer.silent
import zio.internal.{Stack, StackBool}
import zio.prelude._
import zio.{CanFail, Chunk, ChunkBuilder, IsNotIntersection, NeedsEnv, NonEmptyChunk, Tag, ZEnvironment, ZIO}
import zio.{CanFail, Chunk, ChunkBuilder, NeedsEnv, NonEmptyChunk, Tag, ZEnvironment, ZIO}

import scala.annotation.{implicitNotFound, switch}
import scala.reflect.ClassTag
Expand Down Expand Up @@ -1064,7 +1064,7 @@ object ZPure extends ZPureLowPriorityImplicits with ZPureArities {
/**
* Accesses the specified service in the environment of the computation.
*/
def service[S, R: Tag: IsNotIntersection]: ZPure[Nothing, S, S, R, Nothing, R] =
def service[S, R: Tag]: ZPure[Nothing, S, S, R, Nothing, R] =
serviceWith(identity)

/**
Expand Down Expand Up @@ -1143,14 +1143,14 @@ object ZPure extends ZPureLowPriorityImplicits with ZPureArities {
}

final class ServiceWithPartiallyApplied[R](private val dummy: Boolean = true) extends AnyVal {
def apply[S, A](f: R => A)(implicit ev: IsNotIntersection[R], tag: Tag[R]): ZPure[Nothing, S, S, R, Nothing, A] =
def apply[S, A](f: R => A)(implicit tag: Tag[R]): ZPure[Nothing, S, S, R, Nothing, A] =
serviceWithPure(r => ZPure.succeed(f(r)))
}

final class ServiceWithPurePartiallyApplied[R](private val dummy: Boolean = true) extends AnyVal {
def apply[W, S1, S2, E, A](
f: R => ZPure[W, S1, S2, Any, E, A]
)(implicit ev: IsNotIntersection[R], tag: Tag[R]): ZPure[W, S1, S2, R, E, A] =
)(implicit tag: Tag[R]): ZPure[W, S1, S2, R, E, A] =
environmentWithPure(env => f(env.get))
}

Expand Down

0 comments on commit 2fc2126

Please sign in to comment.