Skip to content

Commit

Permalink
Merge pull request #592 from lenguyenthanh/fix-deprecated-import
Browse files Browse the repository at this point in the history
Use `cats.syntax.all._` instead of `cats.implicits`
  • Loading branch information
sh0hei authored Nov 20, 2024
2 parents 54efa73 + 85f547c commit e6cfdcc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/mtl-classes/chronicle.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ We can prohibit bad user data by using a computation halting `confess` and nudge
```scala mdoc
import cats.Monad
import cats.data._
import cats.implicits._
import cats.syntax.all._
import cats.mtl.Chronicle

type Failures = NonEmptyChain[String]
Expand Down
2 changes: 1 addition & 1 deletion docs/mtl-classes/handle.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Let's look at an example of how to use this function:

```scala mdoc
import cats._
import cats.implicits._
import cats.syntax.all._
import cats.mtl._
import cats.mtl.implicits._

Expand Down
2 changes: 1 addition & 1 deletion docs/mtl-classes/listen.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Let's have a look at an example of how one could do this:
```scala mdoc
import cats._
import cats.data._
import cats.implicits._
import cats.syntax.all._
import cats.mtl._
import cats.mtl.implicits._

Expand Down
2 changes: 1 addition & 1 deletion docs/mtl-classes/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Here's a quick example of how it works:
```scala mdoc
import cats._
import cats.data._
import cats.implicits._
import cats.syntax.all._
import cats.mtl._

def calculateContentLength[F[_]: Applicative](implicit F: Ask[F, String]): F[Int] =
Expand Down
2 changes: 1 addition & 1 deletion docs/mtl-classes/raise.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Here's a quick example of how you might use it:

```scala mdoc
import cats._
import cats.implicits._
import cats.syntax.all._
import cats.mtl._

def parseNumber[F[_]: Applicative](in: String)(implicit F: Raise[F, String]): F[Int] = {
Expand Down
2 changes: 1 addition & 1 deletion docs/mtl-classes/stateful.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Let's say we have the following function to access a service:
```scala mdoc
import cats._
import cats.data._
import cats.implicits._
import cats.syntax.all._
import cats.mtl.Stateful

case class ServiceResult(id: Int, companies: List[String])
Expand Down
2 changes: 1 addition & 1 deletion docs/mtl-classes/tell.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ First we'll add the actual service call with its parameters and result types:
```scala mdoc
import cats._
import cats.data._
import cats.implicits._
import cats.syntax.all._
import cats.mtl.Tell

case class ServiceParams(option1: String, option2: Int)
Expand Down

0 comments on commit e6cfdcc

Please sign in to comment.