I have two Http4s routes:
val routes1:HttpRoutes[Task] = ???
val routes2:HttpRoutes[RTask] = ???
Where RTask is just a Task/RIO with a custom environment:
type RTask[A] = RIO[Env,A]
Composing of two routes with the same type parameters can be accomplished by importing "zio-cats-interop" library and doing regular routes1<+>routes1, but because the type parameter of HttpRoutes is invariant, I can't do the same for different types:
routes1<+>routes2 /// error here
Is there any solution for this?