diff --git a/macro/src/main/scala/monocle/macros/internal/Macro.scala b/macro/src/main/scala/monocle/macros/internal/Macro.scala index 46cf8c124..dac9e1891 100644 --- a/macro/src/main/scala/monocle/macros/internal/Macro.scala +++ b/macro/src/main/scala/monocle/macros/internal/Macro.scala @@ -75,7 +75,6 @@ private[macros] class MacroImpl(val c: blackbox.Context) { c.Expr[PLens[S, T, A, B]](q""" import monocle.PLens - import cats.Functor import _root_.scala.language.higherKinds // prevent warning at call site new PLens[$sTpe, $tTpe, $aTpe, $bTpe]{ @@ -85,8 +84,8 @@ private[macros] class MacroImpl(val c: blackbox.Context) { override def set(a: $bTpe): $sTpe => $tTpe = _.copy($field = a) - override def modifyF[$F[_]: Functor](f: $aTpe => $F[$bTpe])(s: $sTpe): $F[$tTpe] = - Functor[$F].map(f(s.$fieldMethod))(a => s.copy($field = a)) + override def modifyF[$F[_]: cats.Functor](f: $aTpe => $F[$bTpe])(s: $sTpe): $F[$tTpe] = + cats.Functor[$F].map(f(s.$fieldMethod))(a => s.copy($field = a)) override def modify(f: $aTpe => $bTpe): $sTpe => $tTpe = s => s.copy($field = f(s.$fieldMethod))