Skip to content

Commit

Permalink
Replace kind-projector placeholders in infix types (#3215)
Browse files Browse the repository at this point in the history
  • Loading branch information
travisbrown authored Dec 16, 2019
1 parent 6f86647 commit 02066f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/Ior.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/scala/cats/evidence/Is.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 02066f7

Please sign in to comment.