diff --git a/project/Dependencies.scala b/project/Dependencies.scala index d14c447..082dda8 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -1,5 +1,5 @@ object Dependencies { - val cats = "2.1.1" + val cats = "2.10.0" val fs2 = "2.4.2" val scalatest = "3.2.2" val scalatestplus = "3.2.2.0" diff --git a/repo-utils/shared/src/main/scala/rpm4s/repo/data/RMDataF.scala b/repo-utils/shared/src/main/scala/rpm4s/repo/data/RMDataF.scala index dac0067..bed9505 100644 --- a/repo-utils/shared/src/main/scala/rpm4s/repo/data/RMDataF.scala +++ b/repo-utils/shared/src/main/scala/rpm4s/repo/data/RMDataF.scala @@ -3,7 +3,7 @@ package rpm4s.repo.data import java.time.Instant import cats.Id -import cats.implicits._ +import cats.syntax.all._ import rpm4s.data.Checksum diff --git a/repo-utils/shared/src/main/scala/rpm4s/repo/data/primary/PackageF.scala b/repo-utils/shared/src/main/scala/rpm4s/repo/data/primary/PackageF.scala index f6ed3bf..61786f1 100644 --- a/repo-utils/shared/src/main/scala/rpm4s/repo/data/primary/PackageF.scala +++ b/repo-utils/shared/src/main/scala/rpm4s/repo/data/primary/PackageF.scala @@ -1,7 +1,7 @@ package rpm4s.repo.data.primary import cats.Id -import cats.implicits._ +import cats.syntax.all._ import rpm4s.data._ case class PackageF[F[_]]( diff --git a/repo-utils/shared/src/main/scala/rpm4s/repo/data/updateinfo/UpdateF.scala b/repo-utils/shared/src/main/scala/rpm4s/repo/data/updateinfo/UpdateF.scala index a30b00d..9d5073e 100644 --- a/repo-utils/shared/src/main/scala/rpm4s/repo/data/updateinfo/UpdateF.scala +++ b/repo-utils/shared/src/main/scala/rpm4s/repo/data/updateinfo/UpdateF.scala @@ -3,7 +3,7 @@ package rpm4s.repo.data.updateinfo import java.time.Instant import cats.Id -import cats.implicits._ +import cats.syntax.all._ import rpm4s.data.{CVE, _} diff --git a/shared/src/main/scala/rpm4s/codecs/Extractor.scala b/shared/src/main/scala/rpm4s/codecs/Extractor.scala index 8c58b0d..af9e16f 100644 --- a/shared/src/main/scala/rpm4s/codecs/Extractor.scala +++ b/shared/src/main/scala/rpm4s/codecs/Extractor.scala @@ -100,7 +100,7 @@ object Extractor { ) val sigTags: Set[SignatureTag] = Set.empty def extract(data: Data): Result[Vector[T]] = { - import cats.implicits._ + import cats.syntax.all._ //TODO: needs more validation val a = for { names <- data(namesTag) @@ -211,7 +211,7 @@ object Extractor { ) val sigTags: Set[SignatureTag] = Set.empty def extract(data: Data): Result[Vector[FileEntry]] = { - import cats.implicits._ + import cats.syntax.all._ for { dirNames <- data(HeaderTag.DirNames) dirIndexes <- data(HeaderTag.DirIndexes) diff --git a/shared/src/main/scala/rpm4s/data/EVR.scala b/shared/src/main/scala/rpm4s/data/EVR.scala index 8dba974..ae2a9b9 100644 --- a/shared/src/main/scala/rpm4s/data/EVR.scala +++ b/shared/src/main/scala/rpm4s/data/EVR.scala @@ -1,7 +1,6 @@ package rpm4s.data import rpm4s.codecs.ConvertingError -import cats.implicits._ case class EVR( version: Version,