Skip to content

Commit

Permalink
That does work due to package
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianhjr committed Feb 12, 2023
1 parent 17aa40d commit c98662b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/type-classes/cats.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@ The companion object of every Cats type class has an `apply` method
that locates an instance for any type we specify:

```scala mdoc
val showInt = Show.apply[Int]
given showInt: Show[Int] = Show.apply[Int]
```

Oops---that didn't work!
The `apply` method uses *implicits* to look up individual instances,
so we'll have to bring some instances into scope.

### Importing Default Instances {#sec:importing-default-instances}

The [`cats.instances`][cats.instances] package
Expand Down

0 comments on commit c98662b

Please sign in to comment.