From 02066f72e30be652732becbd1e6b86236580f6a3 Mon Sep 17 00:00:00 2001 From: Travis Brown Date: Mon, 16 Dec 2019 17:10:42 +0100 Subject: [PATCH] Replace kind-projector placeholders in infix types (#3215) --- core/src/main/scala/cats/data/Ior.scala | 2 +- core/src/main/scala/cats/evidence/Is.scala | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/scala/cats/data/Ior.scala b/core/src/main/scala/cats/data/Ior.scala index 8f5f5cd3ad..bd8247e45c 100644 --- a/core/src/main/scala/cats/data/Ior.scala +++ b/core/src/main/scala/cats/data/Ior.scala @@ -811,7 +811,7 @@ sealed abstract private[data] class IorInstances extends IorInstances0 { sealed abstract private[data] class IorInstances0 { - implicit def catsDataTraverseFunctorForIor[A]: Traverse[A Ior *] = new Traverse[A Ior *] { + implicit def catsDataTraverseFunctorForIor[A]: Traverse[Ior[A, *]] = new Traverse[Ior[A, *]] { def traverse[F[_]: Applicative, B, C](fa: A Ior B)(f: B => F[C]): F[A Ior C] = fa.traverse(f) def foldLeft[B, C](fa: A Ior B, b: C)(f: (C, B) => C): C = diff --git a/core/src/main/scala/cats/evidence/Is.scala b/core/src/main/scala/cats/evidence/Is.scala index c3ec233fb6..7446a5e82b 100644 --- a/core/src/main/scala/cats/evidence/Is.scala +++ b/core/src/main/scala/cats/evidence/Is.scala @@ -27,7 +27,7 @@ abstract class Is[A, B] extends Serializable { * chain much like functions. See also `compose`. */ @inline final def andThen[C](next: B Is C): A Is C = - next.substitute[A Is *](this) + next.substitute[Is[A, *]](this) /** * `Is` is transitive and therefore values of `Is` can be composed in a @@ -41,7 +41,7 @@ abstract class Is[A, B] extends Serializable { * own inverse, so `x.flip.flip == x`. */ @inline final def flip: B Is A = - this.substitute[* Is A](Is.refl) + this.substitute[Is[*, A]](Is.refl) /** * Sometimes for more complex substitutions it helps the typechecker to @@ -63,7 +63,7 @@ abstract class Is[A, B] extends Serializable { * value. */ @inline final def predefEq: A =:= B = - substitute[A =:= *](implicitly[A =:= A]) + substitute[=:=[A, *]](implicitly[A =:= A]) } sealed abstract class IsInstances {