Skip to content

Commit e06ee69

Browse files
committed
Add missing import
Without this import the example code fails with "error: value map is not a member of Tree[Int]".
1 parent 0d9691c commit e06ee69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/functors/cats.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ with the same pattern of `Branch` and `Leaf` nodes:
218218

219219
```scala mdoc:silent
220220
import cats.Functor
221+
import cats.syntax.all._
221222

222223
implicit val treeFunctor: Functor[Tree] =
223224
new Functor[Tree] {

0 commit comments

Comments
 (0)