Skip to content

Commit 47b9dea

Browse files
authored
Tweak imports
1 parent 0f73ac9 commit 47b9dea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

collections/_posts/2025-09-02-custom-error-types.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ The problem has been to find a way to blend all of these constructs together in
4343
```scala
4444
import cats.Monad
4545
import cats.effect.IO
46-
import cats.mtl.syntax.raise.given
46+
import cats.mtl.syntax.all.*
4747
import cats.mtl.{Handle, Raise}
48-
import cats.syntax.applicative.given
48+
import cats.syntax.all.*
4949

5050
// define a domain error type
5151
enum ParseError:
@@ -98,9 +98,9 @@ Oh, and just in case you were wondering, this syntax *does* work on Scala 2 as w
9898
```scala
9999
import cats.Monad
100100
import cats.effect.IO
101-
import cats.mtl.syntax.raise._
101+
import cats.mtl.syntax.all._
102102
import cats.mtl.{Handle, Raise}
103-
import cats.syntax.applicative._
103+
import cats.syntax.all._
104104

105105
// define a domain error type
106106
sealed trait ParseError extends Product with Serializable

0 commit comments

Comments
 (0)