diff --git a/core/src/main/scala/cats/data/Ior.scala b/core/src/main/scala/cats/data/Ior.scala index 60bb4dee1ce..cb633ab7f75 100644 --- a/core/src/main/scala/cats/data/Ior.scala +++ b/core/src/main/scala/cats/data/Ior.scala @@ -216,6 +216,8 @@ private[data] sealed abstract class IorInstances extends IorInstances0 { val applicative: Applicative[Ior[E, ?]] = new Applicative[Ior[E, ?]] { def pure[A](a: A): Ior[E, A] = Ior.right(a) + + // scalastyle:off cyclomatic.complexity def ap[A, B](ff: Ior[E, A => B])(fa: Ior[E, A]): Ior[E, B] = fa match { case Ior.Right(a) => ff match { @@ -234,7 +236,9 @@ private[data] sealed abstract class IorInstances extends IorInstances0 { case Ior.Left(e2) => Ior.Left(E.combine(e2, e1)) } } + // scalastyle:on cyclomatic.complexity } + lazy val monad: Monad[Ior[E, ?]] = Monad[Ior[E, ?]] }