Can't create ArmeriaCatsBackend in IOApp with Cats effects?

Can't create ArmeriaCatsBackend in IOApp with Cats effects?

Problem Description:

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?

Solution – 1

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

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

Rate this post
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Reject