You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above represents the core, stable dependency which brings in the entirety of Cats Effect. This is *most likely* what you want. All current Cats Effect releases are published for Scala 2.12, 2.13, 3.0, and Scala.js 1.7.
@@ -30,22 +30,22 @@ Depending on your use-case, you may want to consider one of the several other mo
30
30
31
31
```scala
32
32
libraryDependencies ++=Seq(
33
-
"org.typelevel"%%"cats-effect-kernel"%"3.5.1",
34
-
"org.typelevel"%%"cats-effect-laws"%"3.5.1"%Test)
33
+
"org.typelevel"%%"cats-effect-kernel"%"3.5.2",
34
+
"org.typelevel"%%"cats-effect-laws"%"3.5.2"%Test)
35
35
```
36
36
37
37
If you're a middleware framework (like [Fs2](https://fs2.io/)), you probably want to depend on **std**, which gives you access to `Queue`, `Semaphore`, and much more without introducing a hard-dependency on `IO` outside of your tests:
38
38
39
39
```scala
40
40
libraryDependencies ++=Seq(
41
-
"org.typelevel"%%"cats-effect-std"%"3.5.1",
42
-
"org.typelevel"%%"cats-effect"%"3.5.1"%Test)
41
+
"org.typelevel"%%"cats-effect-std"%"3.5.2",
42
+
"org.typelevel"%%"cats-effect"%"3.5.2"%Test)
43
43
```
44
44
45
45
You may also find some utility in the **testkit** and **kernel-testkit** projects, which contain `TestContext`, generators for `IO`, and a few other things:
Cats Effect provides backward binary compatibility within the 2.x and 3.x version lines, and both forward and backward compatibility within any major/minor line. This is analogous to the versioning scheme used by Cats itself, as well as other major projects such as Scala.js. Thus, any project depending upon Cats Effect 2.2.1 can be used with libraries compiled against Cats Effect 2.0.0 or 2.2.3, but *not* with libraries compiled against 2.3.0 or higher.
Naturally, if you're using ScalaJS, you should replace the double `%%` with a triple `%%%`. If you're on Scala 2, it is *highly* recommended that you enable the [better-monadic-for](https://github.com/oleg-py/better-monadic-for) plugin, which fixes a number of surprising elements of the `for`-comprehension syntax in the Scala language:
@@ -62,7 +62,7 @@ We will learn more about constructs like `start` and `*>` in later pages, but fo
62
62
Of course, the easiest way to play with Cats Effect is to try it out in a Scala REPL. We recommend using [Ammonite](https://ammonite.io/#Ammonite-REPL) for this kind of thing. To get started, run the following lines (if not using Ammonite, skip the first line and make sure that Cats Effect and its dependencies are correctly configured on the classpath):
0 commit comments