Yes, these kind of errors are common for people starting with Scala implicits.
Nicolas A Perez
22

Thank you very much for responding. By adding these line :

implicit val listSemigroup = new SemigroupK[List] {
override def combineK[A](x: List[A], y: List[A]): List[A] =
x ++ y
}
I could be able to build sbt and generate the jar.
But when I am trying to submit this jar to spark, I am getting this error :----->>>
Exception in thread "main" java.lang.NoClassDefFoundError: cats/data/WriterT
I am using following imports:
import cats.data.Writer
import cats.data.WriterT
import cats.implicits._
import cats._
Could you please help me resolving this issue? I am quite new to scala and spark as well. It would be very great if I you could help me in getting this executed. Thanks in advance