Skip to content

build: Update ZIO #42

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

Merged
merged 2 commits into from
Oct 17, 2019
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package com.avast.sst.bundle

import cats.effect.Resource
import org.slf4j.LoggerFactory
import zio._
import zio.interop.catz._
import zio.{Task, ZIO}

/** Extend this `trait` if you want to implement application using [[zio.ZIO]] effect data type.
*
Expand All @@ -15,7 +15,7 @@ trait ZioResourceApp[A] extends CatsApp {

def program: Resource[Task, A]

override def run(args: List[String]): ZIO[Environment, Nothing, Int] = {
override def run(args: List[String]): ZIO[ZEnv, Nothing, Int] = {
program
.use(_ => Task.unit)
.fold(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import cats.effect.Resource
import com.github.ghik.silencer.silent
import org.http4s.server.Server
import org.slf4j.LoggerFactory
import zio._
import zio.interop.catz._
import zio.{Task, UIO, ZIO}

/** Extend this `trait` if you want to implement server application using [[zio.ZIO]] effect data type.
*
Expand All @@ -19,7 +19,7 @@ trait ZioServerApp extends CatsApp {
def program: Resource[Task, Server[Task]]

@silent("dead code")
override def run(args: List[String]): ZIO[Environment, Nothing, Int] = {
override def run(args: List[String]): ZIO[ZEnv, Nothing, Int] = {
program
.use { server =>
for {
Expand Down
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ object Dependencies {
val silencer = "com.github.ghik" % "silencer-plugin" % Versions.silencer cross CrossVersion.full
val silencerLib = "com.github.ghik" % "silencer-lib" % Versions.silencer cross CrossVersion.full
val slf4jApi = "org.slf4j" % "slf4j-api" % "1.7.28"
val zio = "dev.zio" %% "zio" % "1.0.0-RC14"
val zioInteropCats = "dev.zio" %% "zio-interop-cats" % "2.0.0.0-RC5"
val zio = "dev.zio" %% "zio" % "1.0.0-RC15"
val zioInteropCats = "dev.zio" %% "zio-interop-cats" % "2.0.0.0-RC6"

object Versions {

Expand Down