Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing doctests #2735

Merged
merged 1 commit into from
Feb 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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