Skip to content

Commit

Permalink
Merge pull request #2735 from ceedubs/fix-doctests
Browse files Browse the repository at this point in the history
Fix failing doctests
  • Loading branch information
ceedubs committed Feb 22, 2019
2 parents 8c061de + 54dbc46 commit f16b08f
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 f16b08f

Please sign in to comment.