Skip to content

Commit

Permalink
Add missing import
Browse files Browse the repository at this point in the history
Without this import the example code fails with "error: value map is not
a member of Tree[Int]".
  • Loading branch information
BenMotz committed Nov 30, 2021
1 parent 0d9691c commit e1bced2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/functors/cats.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ with the same pattern of `Branch` and `Leaf` nodes:

```scala mdoc:silent
import cats.Functor
import cats.syntax.functor._ // for map

implicit val treeFunctor: Functor[Tree] =
new Functor[Tree] {
Expand Down

0 comments on commit e1bced2

Please sign in to comment.