Skip to content

Commit

Permalink
Fix failing doctests
Browse files Browse the repository at this point in the history
Though they don't seem to actually fail the build before #2734 and I'm
not sure why...
  • Loading branch information
ceedubs committed Feb 17, 2019
1 parent 2718d5e commit 54dbc46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/cats/data/Kleisli.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/scala/cats/syntax/foldable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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](
Expand All @@ -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](
Expand Down Expand Up @@ -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](
Expand Down

0 comments on commit 54dbc46

Please sign in to comment.