From cd0e97c8e05ecc314789fac72595cc63a6771456 Mon Sep 17 00:00:00 2001 From: Mikhail Vorozhtsov Date: Thu, 21 May 2020 19:01:48 +0300 Subject: [PATCH] Make LoggingEnv arg covariant --- build.sbt | 2 +- sager/src/main/scala/com/github/mvv/zilog/sager/package.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index aa5e8ca..202b55c 100644 --- a/build.sbt +++ b/build.sbt @@ -104,7 +104,7 @@ lazy val sager = (project in file("sager")) name := "zilog-sager", description := "Using generic records to carry logging service in environment", libraryDependencies ++= - Seq(zio % Provided, "com.github.mvv.sager" %% "sager-zio" % "0.1-M2") + Seq(zio % Provided, "com.github.mvv.sager" %% "sager-zio" % "0.1-M3") ) .settings(macroSettings: _*) .settings(zioTestSettings: _*) diff --git a/sager/src/main/scala/com/github/mvv/zilog/sager/package.scala b/sager/src/main/scala/com/github/mvv/zilog/sager/package.scala index 8a8cf78..41bc08b 100644 --- a/sager/src/main/scala/com/github/mvv/zilog/sager/package.scala +++ b/sager/src/main/scala/com/github/mvv/zilog/sager/package.scala @@ -10,7 +10,7 @@ import zio.{UIO, ULayer, URLayer, ZLayer} package object sager { type Logging = Haz[zilog.Logging.Service] - type LoggingEnv[A <: zilog.Logging.Service] = Env[zilog.Logging.Service, A] + type LoggingEnv[+A <: zilog.Logging.Service] = Env[zilog.Logging.Service, A] val Logging: zilog.Logging.type = zilog.Logging type Logger = zilog.Logger val Logger: zilog.Logger.type = zilog.Logger