@@ -802,11 +802,11 @@ sealed abstract class Ior[+A, +B] extends Product with Serializable {
802802
803803 final def compare [AA >: A , BB >: B ](that : AA Ior BB )(implicit AA : Order [AA ], BB : Order [BB ]): Int =
804804 (this , that) match {
805- case (Ior .Left (a1), Ior .Left (a2)) => AA .compare(a1, a2)
806- case (Ior .Left (_), _) => - 1
807- case (Ior .Right (b1), Ior .Right (b2)) => BB .compare(b1, b2)
808- case (Ior .Right (_), Ior .Left (_)) => 1
809- case (Ior .Right (_), Ior .Both (_, _)) => - 1
805+ case (Ior .Left (a1), Ior .Left (a2)) => AA .compare(a1, a2)
806+ case (Ior .Left (_), _) => - 1
807+ case (Ior .Right (b1), Ior .Right (b2)) => BB .compare(b1, b2)
808+ case (Ior .Right (_), Ior .Left (_)) => 1
809+ case (Ior .Right (_), Ior .Both (_, _)) => - 1
810810 case (Ior .Both (a1, b1), Ior .Both (a2, b2)) => {
811811 val r = AA .compare(a1, a2)
812812 if (r == 0 ) BB .compare(b1, b2) else r
@@ -891,7 +891,7 @@ sealed abstract private[data] class IorInstances extends IorInstances0 {
891891 case Ior .Right (Right (c)) => Ior .right(c)
892892 case Ior .Both (a, Right (c)) => Ior .both(a, c)
893893 case Ior .Right (Left (b)) => loop(fn(b))
894- case Ior .Both (a, Left (b)) =>
894+ case Ior .Both (a, Left (b)) =>
895895 fn(b) match {
896896 case Ior .Left (aa) => Ior .left(Semigroup [A ].combine(a, aa))
897897 case Ior .Both (aa, x) => loop(Ior .both(Semigroup [A ].combine(a, aa), x))
@@ -961,7 +961,7 @@ sealed abstract private[data] class IorInstances0 {
961961 override def mapAccumulate [S , B , C ](init : S , fa : Ior [A , B ])(f : (S , B ) => (S , C )): (S , Ior [A , C ]) =
962962 fa match {
963963 case l @ Ior .Left (_) => (init, l)
964- case Ior .Right (b) =>
964+ case Ior .Right (b) =>
965965 val (snext, c) = f(init, b)
966966 (snext, Ior .Right (c))
967967 case Ior .Both (a, b) =>
0 commit comments