diff --git a/core/src/main/scala/cats/data/NonEmptyMapImpl.scala b/core/src/main/scala/cats/data/NonEmptyMapImpl.scala index 226d12dfeb6..8ae928d3b58 100644 --- a/core/src/main/scala/cats/data/NonEmptyMapImpl.scala +++ b/core/src/main/scala/cats/data/NonEmptyMapImpl.scala @@ -23,12 +23,14 @@ import cats.{Always, Apply, Eval, Foldable, Functor, Later, NonEmptyTraverse, No import scala.collection.immutable._ - -object NonEmptyMapImpl extends NonEmptyMapInstances { - +private[data] trait Newtype2 { self => type Base trait Tag extends Any type Type[A, B] <: Base with Tag +} + + +object NonEmptyMapImpl extends NonEmptyMapInstances with Newtype2 { private[cats] def create[K, A](m: SortedMap[K, A]): Type[K, A] = m.asInstanceOf[Type[K, A]]