Skip to content

Commit

Permalink
Merge pull request #65 from gvolpe/upgrade/zio-RC4
Browse files Browse the repository at this point in the history
Updating `zio` and `sbt` versions
  • Loading branch information
gvolpe authored Apr 25, 2019
2 parents 0c61d0f + f251ff5 commit 1c6e095
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions examples/src/main/scala/com/github/gvolpe/tracer/ZIOServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ package com.github.gvolpe.tracer

import com.github.gvolpe.tracer.instances.tracer._
import com.github.gvolpe.tracer.instances.tracerlog._
import scalaz.zio.{App, Clock, IO}
import scalaz.zio.interop.Task
import scalaz.zio._
import scalaz.zio.interop.catz._
import scalaz.zio.interop.catz.implicits._

object ZIOServer extends App {
object ZIOServer extends CatsApp {

implicit val clock = Clock.Live

override def run(args: List[String]): IO[Nothing, ExitStatus] =
new Main[Task].server.run.map(_ => ExitStatus.ExitNow(0))
def run(args: List[String]): UIO[Int] =
new Main[Task].server.run.map(_.fold(_ => 1, _ => 0))

}
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ object Dependencies {
val circe = "0.11.1"
val gfcTimeuuid = "0.0.8"
val log4Cats = "0.3.0"
val zio = "0.6.3"
val zio = "1.0-RC4"

// Test
val scalaTest = "3.0.7"
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.7
sbt.version=1.2.8

0 comments on commit 1c6e095

Please sign in to comment.