Can't create ArmeriaCatsBackend in IOApp with Cats effects?

67 views Asked by At

I want to use ArmeriaCatsBackend as sttp backend with Cats effects.

The following code does not compile:

object Main extends IOApp {
  val backend = ArmeriaCatsBackend[IO]()
  // ...
}

could not find implicit value for evidence parameter of type cats.effect.kernel.Async[cats.effect.IO] Error occurred in an application involving default arguments.

Documentation

What am I missing?

1

There are 1 answers

0
igr On BEST ANSWER

Dang. I was using scala-effects v2.x and sttp-ameria for v3.

After upgrading to scala-effects v3.x everything is ok.