Skip to content

Commit

Permalink
Merge pull request #544 from lenguyenthanh/use-cats-syntax-import
Browse files Browse the repository at this point in the history
Use cats.syntax.all instead of cats.implicits
  • Loading branch information
bkirwi committed Jun 20, 2024
2 parents 24b2f9b + 531a5ac commit a6044f6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion doc/src/main/tut/effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -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._
Expand Down
2 changes: 1 addition & 1 deletion doc/src/main/tut/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion doc/src/main/tut/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/src/main/tut/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand All @@ -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
```
Expand Down

0 comments on commit a6044f6

Please sign in to comment.