@@ -849,17 +849,17 @@ object EitherT extends EitherTInstances {
849849 * scala> import cats._, data._, implicits._
850850 * scala> val f: Unit => String = Function.const("panic!")
851851 * scala> val a: Option[Int] = None
852- * scala> val b: EitherT[Option, String, Int] = EitherT.liftRedeemK [Option, Unit, String](f).apply(a)
852+ * scala> val b: EitherT[Option, String, Int] = EitherT.liftAdaptErrorK [Option, Unit, String](f).apply(a)
853853 * scala> b.value
854854 * res0: Option[Either[String, Int]] = Some(Left(panic!))
855855 *
856856 * scala> val a2: Option[Int] = Some(42)
857- * scala> val b2: EitherT[Option, String, Int] = EitherT.liftRedeemK [Option, Unit, String](f).apply(a2)
857+ * scala> val b2: EitherT[Option, String, Int] = EitherT.liftAdaptErrorK [Option, Unit, String](f).apply(a2)
858858 * scala> b2.value
859859 * res1: Option[Either[String, Int]] = Some(Right(42))
860860 * }}}
861861 */
862- final def liftRedeemK [F [_], EA , EB ](fe : EA => EB )(implicit F : ApplicativeError [F , EA ]): F ~> EitherT [F , EB , * ] =
862+ final def liftAdaptErrorK [F [_], EA , EB ](fe : EA => EB )(implicit F : ApplicativeError [F , EA ]): F ~> EitherT [F , EB , * ] =
863863 new (F ~> EitherT [F , EB , * ]) {
864864 def apply [A ](fa : F [A ]): EitherT [F , EB , A ] = EitherT (F .redeem(fa)(ea => Left (fe(ea)), Right .apply))
865865 }
0 commit comments