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

Enable scala 3 for zio2Core, update zio2Cats interop version. #1281

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ lazy val zio2Core = projectMatrix
libraryDependencies ++= List(zio2, zio2Cats),
name := "tofu-zio2-core"
)
.jvmPlatform(scala2Versions)
.jvmPlatform(scala2And3Versions)
.dependsOn(coreCE3)

lazy val zio1Logging = projectMatrix
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package tofu

import izumi.reflect.Tag
import tofu.compat.unused
import tofu.higherKind.bi.{EmbedBK, FunctorBK}
import tofu.syntax.functorbk._
import tofu.zioInstances.implicits._
import zio.{IO, ZIO, Tag => ZTag}

import scala.annotation.nowarn
import zio.{IO, Tag => ZTag, ZIO}

object zioFunctions {
@nowarn("cat=unused-params")
@unused
def expose[U[_[_, _]]: EmbedBK: FunctorBK: Tag.auto.T]: U[ZIO[U[IO], +_, +_]] =
EmbedBK.of[ZIO[U[IO], +_, +_], U](ZIO.environmentWith(_.get[U[IO]](ZTag[U[IO]]).widenb))
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ package tofu.zioInstances

import glass.{Contains, Extract}
import tofu._
import tofu.compat.unused
import tofu.lift.{Lift, Unlift, UnliftIO, UnsafeExecFuture}
import tofu.zioInstances.implicits._
import zio._

import scala.annotation.nowarn

object ZioInstancesSuite {

def summonZioInstances[E1, E2: Extract[_, E1], R1: Tag, R2: Tag: Contains[_, R1]](): Unit = {
Expand Down Expand Up @@ -40,7 +39,7 @@ object ZioInstancesSuite {
()
}

@nowarn("cat=unused-params")
@unused
def summonZioInstances[E, Env: Tag, Ctx: Tag](): Unit = {
implicitly[WithRun[ZIO[Env with Ctx, E, _], ZIO[Env, E, _], Ctx]]
implicitly[WithRun[ZIO[Ctx with Env, E, _], ZIO[Env, E, _], Ctx]]
Expand All @@ -49,7 +48,7 @@ object ZioInstancesSuite {
()
}

@nowarn("cat=unused-params")
@unused
def taskAmbiguity: Any = {
import cats.effect.Sync
import tofu.Raise
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ object Dependencies {

val zioCats = "2.5.1.0"

val zio2Cats = "23.0.0.4"
val zio2Cats = "23.1.0.2"

val shapeless = "2.3.10"

Expand Down
Loading