Class

cats.syntax

EitherKOps

Related Doc: package syntax

Permalink

final class EitherKOps[F[_], A] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EitherKOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EitherKOps(fa: F[A])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. def leftc[G[_]]: EitherK[F, G, A]

    Permalink

    Lift an F[A] into a EitherK[F, G, A] for any type constructor G[_].

    Lift an F[A] into a EitherK[F, G, A] for any type constructor G[_].

    See also

    rightc to swap the order of F and G 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)))
  8. def rightc[G[_]]: EitherK[G, F, A]

    Permalink

    Lift an F[A] into a EitherK[G, F, A] for any type constructor G[_].

    Lift an F[A] into a EitherK[G, F, A] for any type constructor G[_].

    See also

    leftc to swap the order of F and G 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)))
  9. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped