final class EitherKOps[F[_], A] extends AnyVal
- Alphabetic
- By Inheritance
- EitherKOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new EitherKOps(fa: F[A])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
leftc[G[_]]: EitherK[F, G, A]
Lift an
F[A]
into aEitherK[F, G, A]
for any type constructorG[_]
.Lift an
F[A]
into aEitherK[F, G, A]
for any type constructorG[_]
.- See also
rightc to swap the order of
F
andG
in the result type. Example:scala> import cats.data.EitherK scala> import cats.Eval scala> import cats.implicits._ scala> List(1, 2, 3).leftc[Eval] res0: EitherK[List, Eval, Int] = EitherK(Left(List(1, 2, 3)))
-
def
rightc[G[_]]: EitherK[G, F, A]
Lift an
F[A]
into aEitherK[G, F, A]
for any type constructorG[_]
.Lift an
F[A]
into aEitherK[G, F, A]
for any type constructorG[_]
.- See also
leftc to swap the order of
F
andG
in the result type. Example:scala> import cats.data.EitherK scala> import cats.Eval scala> import cats.implicits._ scala> List(1, 2, 3).rightc[Eval] res0: EitherK[Eval, List, Int] = EitherK(Right(List(1, 2, 3)))
-
def
toString(): String
- Definition Classes
- Any