-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Enable scala 3 for zio2Core, update zio2Cats interop version.
Showing
4 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
modules/interop/zio2/core/src/main/scala/tofu/zioFunctions.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters