Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable scala 3 for zio2Core, update zio2Cats interop version.
Browse files Browse the repository at this point in the history
Grryum committed May 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 50599da commit e0b324a
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -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
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
@@ -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 = {
@@ -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]]
@@ -49,7 +48,7 @@ object ZioInstancesSuite {
()
}

@nowarn("cat=unused-params")
@unused
def taskAmbiguity: Any = {
import cats.effect.Sync
import tofu.Raise
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit e0b324a

Please sign in to comment.