Skip to content

Commit

Permalink
upgrade zio version (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgfraser authored Jan 30, 2022
1 parent 14eeb95 commit a9fbb68
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 @@ -23,7 +23,7 @@ inThisBuild(
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")

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 zio-query/shared/src/main/scala/zio/query/ZQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ object ZQuery {
/**
* Accesses the whole environment of the query.
*/
def service[R: Tag: IsNotIntersection](implicit trace: ZTraceElement): ZQuery[R, Nothing, R] =
def service[R: Tag](implicit trace: ZTraceElement): ZQuery[R, Nothing, R] =
ZQuery.fromZIO(ZIO.service)

/**
Expand Down Expand Up @@ -1548,21 +1548,21 @@ object ZQuery {
final class ServiceWithPartiallyApplied[R](private val dummy: Boolean = true) extends AnyVal {
def apply[A](
f: R => A
)(implicit ev: IsNotIntersection[R], tag: Tag[R], trace: ZTraceElement): ZQuery[R, Nothing, A] =
)(implicit tag: Tag[R], trace: ZTraceElement): ZQuery[R, Nothing, A] =
service[R].map(f)
}

final class ServiceWithQueryPartiallyApplied[R](private val dummy: Boolean = true) extends AnyVal {
def apply[E, A](
f: R => ZQuery[R, E, A]
)(implicit ev: IsNotIntersection[R], tag: Tag[R], race: ZTraceElement): ZQuery[R, E, A] =
)(implicit tag: Tag[R], race: ZTraceElement): ZQuery[R, E, A] =
service[R].flatMap(f)
}

final class ServiceWithZIOPartiallyApplied[R](private val dummy: Boolean = true) extends AnyVal {
def apply[E, A](
f: R => ZIO[R, E, A]
)(implicit ev: IsNotIntersection[R], tag: Tag[R], trace: ZTraceElement): ZQuery[R, E, A] =
)(implicit tag: Tag[R], trace: ZTraceElement): ZQuery[R, E, A] =
service[R].mapZIO(f)
}

Expand Down

0 comments on commit a9fbb68

Please sign in to comment.