From 54dbc467475afc0dab0c2c3073488d7ff791a575 Mon Sep 17 00:00:00 2001 From: Cody Allen Date: Sat, 16 Feb 2019 21:36:57 -0800 Subject: [PATCH] Fix failing doctests Though they don't seem to actually fail the build before #2734 and I'm not sure why... --- core/src/main/scala/cats/data/Kleisli.scala | 4 ++-- core/src/main/scala/cats/syntax/foldable.scala | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/scala/cats/data/Kleisli.scala b/core/src/main/scala/cats/data/Kleisli.scala index 27fbb2bef4..63bbf45012 100644 --- a/core/src/main/scala/cats/data/Kleisli.scala +++ b/core/src/main/scala/cats/data/Kleisli.scala @@ -161,12 +161,12 @@ object Kleisli * scala> val b: KOI[Either[Char, Char]] = Kleisli[Option, Int, Either[Char, Char]](f _) * scala> val nt: Kleisli[Option, Int, ?] ~> Option = Kleisli.applyK[Option, Int](1) * scala> nt(b) - * res0: Option[Either[Char, Char]] = Some(Right('n')) + * res0: Option[Either[Char, Char]] = Some(Right(n)) * * scala> type EKOIC[A] = EitherT[KOI, Char, A] * scala> val c: EKOIC[Char] = EitherT[KOI, Char, Char](b) * scala> c.mapK(nt).value - * res1: Option[Either[Char, Char]] = Some(Right('n')) + * res1: Option[Either[Char, Char]] = Some(Right(n)) * * scala> val ntz = Kleisli.applyK[Option, Int](0) * scala> c.mapK(ntz).value diff --git a/core/src/main/scala/cats/syntax/foldable.scala b/core/src/main/scala/cats/syntax/foldable.scala index 51ba04469d..27a41812d4 100644 --- a/core/src/main/scala/cats/syntax/foldable.scala +++ b/core/src/main/scala/cats/syntax/foldable.scala @@ -252,7 +252,7 @@ final class FoldableOps0[F[_], A](private val fa: F[A]) extends AnyVal { * res0: (List[Int], List[String]) = (List(1, 2, 3, 4),List(value 1, value 2, value 3, value 4)) * `Const`'s second parameter is never instantiated, so we can use an impossible type: * scala> list.partitionBifold(a => Const[Int, Nothing with Any](a)) - * res1: (List[Int], List[Nothing with Any]) = (List(1, 2, 3, 4), List()) + * res1: (List[Int], List[Nothing with Any]) = (List(1, 2, 3, 4),List()) * }}} */ def partitionBifold[H[_, _], B, C]( @@ -271,7 +271,7 @@ final class FoldableOps0[F[_], A](private val fa: F[A]) extends AnyVal { * scala> val list = List(1,2,3,4) * `Const`'s second parameter is never instantiated, so we can use an impossible type: * scala> list.partitionBifoldM(a => Option(Const[Int, Nothing with Any](a))) - * res0: Option[(List[Int], List[Nothing with Any])] = Some((List(1, 2, 3, 4), List())) + * res0: Option[(List[Int], List[Nothing with Any])] = Some((List(1, 2, 3, 4),List())) * }}} */ def partitionBifoldM[G[_], H[_, _], B, C]( @@ -341,7 +341,7 @@ final class FoldableOps1[F[_]](private val F: Foldable[F]) extends AnyVal { * scala> val list = List(1,2,3,4) * `Const`'s second parameter is never instantiated, so we can use an impossible type: * scala> Foldable[List].partitionBifoldM(list)(a => Option(Const[Int, Nothing with Any](a))) - * res0: Option[(List[Int], List[Nothing with Any])] = Some((List(1, 2, 3, 4), List())) + * res0: Option[(List[Int], List[Nothing with Any])] = Some((List(1, 2, 3, 4),List())) * }}} */ def partitionBifoldM[G[_], H[_, _], A, B, C](