Skip to content

Commit

Permalink
deprecate Either.raiseOrPure; use Either.liftTo instead
Browse files Browse the repository at this point in the history
  • Loading branch information
bpholt committed Aug 15, 2019
1 parent d4a8d00 commit fd8a7e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/scala/cats/syntax/either.scala
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ final class EitherOps[A, B](private val eab: Either[A, B]) extends AnyVal {

def toEitherNel[AA >: A]: EitherNel[AA, B] = leftMap(NonEmptyList.one)

@deprecated("use liftTo instead", "2.0.0")
def raiseOrPure[F[_]](implicit ev: ApplicativeError[F, A]): F[B] =
ev.fromEither(eab)

Expand Down

0 comments on commit fd8a7e8

Please sign in to comment.