We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e4b76 commit fb80a9cCopy full SHA for fb80a9c
src/pages/type-classes/cats.md
@@ -34,13 +34,9 @@ The companion object of every Cats type class has an `apply` method
34
that locates an instance for any type we specify:
35
36
```scala mdoc
37
-val showInt = Show.apply[Int]
+given showInt: Show[Int] = Show.apply[Int]
38
```
39
40
-Oops---that didn't work!
41
-The `apply` method uses *implicits* to look up individual instances,
42
-so we'll have to bring some instances into scope.
43
-
44
### Importing Default Instances {#sec:importing-default-instances}
45
46
The [`cats.instances`][cats.instances] package
0 commit comments