Skip to content

Commit

Permalink
Rename instances for AndThen
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru committed Jun 16, 2018
1 parent d7932e7 commit fcc7346
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/main/scala/cats/data/AndThen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private[data] abstract class AndThenInstances1 extends AndThenInstances0 {
/**
* [[cats.Monad]] instance for [[AndThen]].
*/
implicit def catsStdMonadForAndThen[T]: Monad[AndThen[T, ?]] =
implicit def catsMonadForAndThen[T]: Monad[AndThen[T, ?]] =
new Monad[AndThen[T, ?]] {
// Piggybacking on the instance for Function1
private[this] val fn1 = instances.all.catsStdMonadForFunction1[T]
Expand All @@ -193,7 +193,7 @@ private[data] abstract class AndThenInstances1 extends AndThenInstances0 {
/**
* [[cats.ContravariantMonoidal]] instance for [[AndThen]].
*/
implicit def catsStdContravariantMonoidalForAndThen[R : Monoid]: ContravariantMonoidal[AndThen[?, R]] =
implicit def catsContravariantMonoidalForAndThen[R : Monoid]: ContravariantMonoidal[AndThen[?, R]] =
new ContravariantMonoidal[AndThen[?, R]] {
// Piggybacking on the instance for Function1
private[this] val fn1 = instances.all.catsStdContravariantMonoidalForFunction1[R]
Expand All @@ -213,7 +213,7 @@ private[data] abstract class AndThenInstances1 extends AndThenInstances0 {
* [[cats.arrow.CommutativeArrow CommutativeArrow]] instances
* for [[AndThen]].
*/
implicit val catsStdArrowInstancesForAndThen: ArrowChoice[AndThen] with CommutativeArrow[AndThen] =
implicit val catsArrowInstancesForAndThen: ArrowChoice[AndThen] with CommutativeArrow[AndThen] =
new ArrowChoice[AndThen] with CommutativeArrow[AndThen] {
// Piggybacking on the instance for Function1
private[this] val fn1 = instances.all.catsStdInstancesForFunction1
Expand All @@ -239,7 +239,7 @@ private[data] abstract class AndThenInstances0 {
/**
* [[cats.Contravariant]] instance for [[AndThen]].
*/
implicit def catsStdContravariantForAndThen[R]: Contravariant[AndThen[?, R]] =
implicit def catsContravariantForAndThen[R]: Contravariant[AndThen[?, R]] =
new Contravariant[AndThen[?, R]] {
def contramap[T1, T0](fa: AndThen[T1, R])(f: T0 => T1): AndThen[T0, R] =
fa.compose(f)
Expand Down

0 comments on commit fcc7346

Please sign in to comment.