Packages

c

cats.syntax

EitherKOps

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

Source
eitherK.scala
Linear Supertypes
Type Hierarchy
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])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def leftc[G[_]]: EitherK[F, G, A]

    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]

    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
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped