Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace kind-projector placeholders in infix types #3215

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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