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

Change value-level kind-projector syntax #3438

Merged
merged 1 commit into from
May 28, 2020
Merged
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
Change value-level kind-projector syntax
  • Loading branch information
travisbrown committed May 28, 2020
commit 620961ecc8e6605abc12dd946336ec15addd1fb0
4 changes: 3 additions & 1 deletion core/src/main/scala/cats/data/EitherT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,9 @@ object EitherT extends EitherTInstances {
* }}}
*/
final def liftAttemptK[F[_], E](implicit F: ApplicativeError[F, E]): F ~> EitherT[F, E, *] =
λ[F ~> EitherT[F, E, *]](fa => EitherT(F.attempt(fa)))
new (F ~> EitherT[F, E, *]) {
def apply[A](fa: F[A]): EitherT[F, E, A] = EitherT(F.attempt(fa))
}

@deprecated("Use EitherT.liftF.", "1.0.0-RC1")
final def liftT[F[_], A, B](fb: F[B])(implicit F: Functor[F]): EitherT[F, A, B] = right(fb)
Expand Down