From b817b2ccf6aa11e732b4dea5f68313e1fd761992 Mon Sep 17 00:00:00 2001 From: fortyseven_degrees Date: Mon, 27 Feb 2023 05:35:33 +0000 Subject: [PATCH 1/2] Applied Scalafix rule(s) github:typelevel/cats-effect/v3_0_0?sha=v3.0.0 --- .../main/scala/org/scalaexercises/evaluator/evaluation.scala | 3 ++- .../src/main/scala/org/scalaexercises/evaluator/services.scala | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/main/scala/org/scalaexercises/evaluator/evaluation.scala b/server/src/main/scala/org/scalaexercises/evaluator/evaluation.scala index 88d5adee..4a9b5646 100644 --- a/server/src/main/scala/org/scalaexercises/evaluator/evaluation.scala +++ b/server/src/main/scala/org/scalaexercises/evaluator/evaluation.scala @@ -39,10 +39,11 @@ import scala.tools.nsc.reporters._ import scala.tools.nsc.{Global, Settings} import scala.util.{Failure, Success, Try} import scala.util.control.NonFatal +import cats.effect.Temporal class Evaluator[F[_]: Sync](timeout: FiniteDuration = 20.seconds)(implicit F: ConcurrentEffect[F], - T: Timer[F] + T: Temporal[F] ) { type Remote = String diff --git a/server/src/main/scala/org/scalaexercises/evaluator/services.scala b/server/src/main/scala/org/scalaexercises/evaluator/services.scala index 8a67c58b..f86b6d25 100644 --- a/server/src/main/scala/org/scalaexercises/evaluator/services.scala +++ b/server/src/main/scala/org/scalaexercises/evaluator/services.scala @@ -16,7 +16,7 @@ package org.scalaexercises.evaluator -import cats.effect.{ConcurrentEffect, ContextShift, ExitCode, IO, IOApp, Timer} +import cats.effect.{ConcurrentEffect, ExitCode, IO, IOApp} import cats.implicits._ import coursier.interop.cats._ import coursier.util.Sync From 0aa5d80693a32b207fb937880af0382eec8970c0 Mon Sep 17 00:00:00 2001 From: fortyseven_degrees Date: Mon, 27 Feb 2023 05:36:07 +0000 Subject: [PATCH 2/2] Update cats-effect to 3.4.8 --- project/ProjectPlugin.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ProjectPlugin.scala b/project/ProjectPlugin.scala index 5ef33e92..33ac3708 100644 --- a/project/ProjectPlugin.scala +++ b/project/ProjectPlugin.scala @@ -16,7 +16,7 @@ object ProjectPlugin extends AutoPlugin { object V { lazy val cats = "2.9.0" - lazy val catsEffect = "2.5.5" + lazy val catsEffect = "3.4.8" lazy val http4s = "0.21.34" lazy val circe = "0.14.2" lazy val log4s = "1.7.0"