Her sincerly
Her sincerly

Reputation: 383

Sequence and Traverse in Cats Scala to map a types

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

Upvotes: 2

Views: 2014

Answers (1)

Dmytro Mitin
Dmytro Mitin

Reputation: 51658

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

Upvotes: 6

Related Questions