From 531a5ace979add6ebd86a2ad39d509cea1d918ca Mon Sep 17 00:00:00 2001 From: Thanh Le Date: Thu, 20 Jun 2024 12:21:16 +0700 Subject: [PATCH] Use cats.syntax.all instead of cats.implicits --- README.md | 2 +- .../scala/com/monovore/decline/bench/OptionSequence.scala | 2 +- .../scala/com/monovore/decline/bench/SandwichedArgs.scala | 2 +- doc/src/main/tut/effect.md | 2 +- doc/src/main/tut/index.md | 2 +- doc/src/main/tut/structure.md | 2 +- doc/src/main/tut/usage.md | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 65f4ad6c..586f5c31 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A composable command-line parser, inspired by [`optparse-applicative`][optparse] and built on [`cats`][cats]. ```scala -import cats.implicits._ +import cats.syntax.all._ import com.monovore.decline._ object HelloWorld extends CommandApp( diff --git a/bench/src/main/scala/com/monovore/decline/bench/OptionSequence.scala b/bench/src/main/scala/com/monovore/decline/bench/OptionSequence.scala index f1de6ad7..e0b2963e 100644 --- a/bench/src/main/scala/com/monovore/decline/bench/OptionSequence.scala +++ b/bench/src/main/scala/com/monovore/decline/bench/OptionSequence.scala @@ -2,7 +2,7 @@ package com.monovore.decline.bench import com.monovore.decline._ import org.openjdk.jmh.annotations.Benchmark -import cats.implicits._ +import cats.syntax.all._ object OptionSequence { diff --git a/bench/src/main/scala/com/monovore/decline/bench/SandwichedArgs.scala b/bench/src/main/scala/com/monovore/decline/bench/SandwichedArgs.scala index 001fbad5..cd8c9052 100644 --- a/bench/src/main/scala/com/monovore/decline/bench/SandwichedArgs.scala +++ b/bench/src/main/scala/com/monovore/decline/bench/SandwichedArgs.scala @@ -2,7 +2,7 @@ package com.monovore.decline.bench import com.monovore.decline._ import org.openjdk.jmh.annotations.Benchmark -import cats.implicits._ +import cats.syntax.all._ object SandwichedArgs { diff --git a/doc/src/main/tut/effect.md b/doc/src/main/tut/effect.md index 19937e95..dcc97f7e 100644 --- a/doc/src/main/tut/effect.md +++ b/doc/src/main/tut/effect.md @@ -34,7 +34,7 @@ And add the necessary imports: ```scala mdoc:to-string import cats.effect._ -import cats.implicits._ +import cats.syntax.all._ import com.monovore.decline._ import com.monovore.decline.effect._ diff --git a/doc/src/main/tut/index.md b/doc/src/main/tut/index.md index a825fc85..13c258b9 100644 --- a/doc/src/main/tut/index.md +++ b/doc/src/main/tut/index.md @@ -34,7 +34,7 @@ libraryDependencies += "com.monovore" %% "decline" % "@DECLINE_VERSION@" Then, write a program: ```scala mdoc:silent -import cats.implicits._ +import cats.syntax.all._ import com.monovore.decline._ object HelloWorld extends CommandApp( diff --git a/doc/src/main/tut/structure.md b/doc/src/main/tut/structure.md index 48b4ccf4..331a4632 100644 --- a/doc/src/main/tut/structure.md +++ b/doc/src/main/tut/structure.md @@ -25,7 +25,7 @@ and writes out the result to another file. ```scala mdoc:to-string import com.monovore.decline._ -import cats.implicits._ +import cats.syntax.all._ import java.net.URI import scala.concurrent.duration.Duration diff --git a/doc/src/main/tut/usage.md b/doc/src/main/tut/usage.md index 339851c7..ce424cde 100644 --- a/doc/src/main/tut/usage.md +++ b/doc/src/main/tut/usage.md @@ -118,7 +118,7 @@ You can combine multiple `Opts` instances using `cats`' [applicative syntax](http://typelevel.org/cats/typeclasses/apply.html#apply-builder-syntax): ```scala mdoc:to-string -import cats.implicits._ +import cats.syntax.all._ val tailOptions = (linesOrDefault, fileList).mapN { (n, files) => println(s"LOG: Printing the last $n lines from each file in $files!") @@ -129,7 +129,7 @@ val tailOptions = (linesOrDefault, fileList).mapN { (n, files) => to compose into a larger `Opts` that yields a tuple: ```scala mdoc:to-string -import cats.implicits._ +import cats.syntax.all._ val tailOptionsTuple = (linesOrDefault, fileList).tupled ```