File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
bundle-zio-http4s-blaze/src/main/scala/com/avast/sst/bundle Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ package com.avast.sst.bundle
2
2
3
3
import cats .effect .Resource
4
4
import org .slf4j .LoggerFactory
5
+ import zio ._
5
6
import zio .interop .catz ._
6
- import zio .{Task , ZIO }
7
7
8
8
/** Extend this `trait` if you want to implement application using [[zio.ZIO ]] effect data type.
9
9
*
@@ -15,7 +15,7 @@ trait ZioResourceApp[A] extends CatsApp {
15
15
16
16
def program : Resource [Task , A ]
17
17
18
- override def run (args : List [String ]): ZIO [Environment , Nothing , Int ] = {
18
+ override def run (args : List [String ]): ZIO [ZEnv , Nothing , Int ] = {
19
19
program
20
20
.use(_ => Task .unit)
21
21
.fold(
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import cats.effect.Resource
4
4
import com .github .ghik .silencer .silent
5
5
import org .http4s .server .Server
6
6
import org .slf4j .LoggerFactory
7
+ import zio ._
7
8
import zio .interop .catz ._
8
- import zio .{Task , UIO , ZIO }
9
9
10
10
/** Extend this `trait` if you want to implement server application using [[zio.ZIO ]] effect data type.
11
11
*
@@ -19,7 +19,7 @@ trait ZioServerApp extends CatsApp {
19
19
def program : Resource [Task , Server [Task ]]
20
20
21
21
@ silent(" dead code" )
22
- override def run (args : List [String ]): ZIO [Environment , Nothing , Int ] = {
22
+ override def run (args : List [String ]): ZIO [ZEnv , Nothing , Int ] = {
23
23
program
24
24
.use { server =>
25
25
for {
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ object Dependencies {
19
19
val silencer = " com.github.ghik" % " silencer-plugin" % Versions .silencer cross CrossVersion .full
20
20
val silencerLib = " com.github.ghik" % " silencer-lib" % Versions .silencer cross CrossVersion .full
21
21
val slf4jApi = " org.slf4j" % " slf4j-api" % " 1.7.28"
22
- val zio = " dev.zio" %% " zio" % " 1.0.0-RC14 "
23
- val zioInteropCats = " dev.zio" %% " zio-interop-cats" % " 2.0.0.0-RC5 "
22
+ val zio = " dev.zio" %% " zio" % " 1.0.0-RC15 "
23
+ val zioInteropCats = " dev.zio" %% " zio-interop-cats" % " 2.0.0.0-RC6 "
24
24
25
25
object Versions {
26
26
You can’t perform that action at this time.
0 commit comments