Skip to content

Commit

Permalink
Added EitherT types for 2.10 and 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Erica Giordo authored and Erica Giordo committed Jun 8, 2018
1 parent 7a40d95 commit 7015a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/EitherT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ final case class EitherT[F[_], A, B](value: F[Either[A, B]]) {
* scala> import cats.implicits._
* scala> import cats.data.EitherT
*
* scala> val eitherT: EitherT[List, String, Int] = EitherT(List(Left("abc"), Right(123)))
* scala> val eitherT: EitherT[List, String, Int] = EitherT[List, String, Int](List(Left("abc"), Right(123)))
* scala> eitherT.biSemiflatMap(string => List(string.length), int => List(int.toFloat))
* res0: cats.data.EitherT[List,Int,Float] = EitherT(List(Left(3), Right(123.0)))
* }}}
Expand Down

0 comments on commit 7015a82

Please sign in to comment.