Sequence and Traverse in Cats Scala to map a types

Viewed 455

I have this a value of type List[EitherT[IO, String, Int]] and I want to do sequence on it in order to map it into EitherT[IO,String, List[Int]]

I read and I found sequence method but It gives me an error saying that it needs an implicit Applicative of [G] how can this be resolved

1 Answers

It's hard to guess the reasons of your compile error ("needs an implicit Applicative[G]") without MCVE. Please provide the one.

Related