From e1bced23458e287cb9dacb368b944e4755d2d9d8 Mon Sep 17 00:00:00 2001 From: Ben Motz Date: Tue, 30 Nov 2021 12:47:13 +0000 Subject: [PATCH] Add missing import Without this import the example code fails with "error: value map is not a member of Tree[Int]". --- src/pages/functors/cats.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/functors/cats.md b/src/pages/functors/cats.md index 3ae4835c..b872339e 100644 --- a/src/pages/functors/cats.md +++ b/src/pages/functors/cats.md @@ -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] {