Skip to content
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

Update cats-effect to 3.3.9 #396

Closed
wants to merge 2 commits into from
Closed
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
2 changes: 1 addition & 1 deletion project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ object ProjectPlugin extends AutoPlugin {

object V {
lazy val cats = "2.7.0"
lazy val catsEffect = "2.5.4"
lazy val catsEffect = "3.3.9"
lazy val http4s = "0.21.33"
lazy val circe = "0.14.1"
lazy val log4s = "1.7.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,6 +31,7 @@ import org.log4s.getLogger
import org.scalaexercises.evaluator.codecs._

import scala.concurrent.duration._
import cats.effect.Temporal

object services {

Expand All @@ -44,7 +45,7 @@ object services {
Header("Access-Control-Max-Age", 1.day.toSeconds.toString())
)

def service[F[_]: ConcurrentEffect: ContextShift: Timer: Sync](evaluator: Evaluator[F]) = {
def service[F[_]: ConcurrentEffect: ContextShift: Temporal: Sync](evaluator: Evaluator[F]) = {

object dsl extends Http4sDsl[F]

Expand Down