Object/Class

cats.data

EitherT

Related Docs: class EitherT | package data

Permalink

object EitherT extends EitherTInstances with EitherTFunctions with Serializable

Linear Supertypes
Serializable, Serializable, EitherTFunctions, EitherTInstances, EitherTInstances1, EitherTInstances2, EitherTInstances3, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EitherT
  2. Serializable
  3. Serializable
  4. EitherTFunctions
  5. EitherTInstances
  6. EitherTInstances1
  7. EitherTInstances2
  8. EitherTInstances3
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class FromEitherPartiallyApplied[F[_]] extends AnyRef

    Permalink
    Definition Classes
    EitherTFunctions
  2. final class FromOptionPartiallyApplied[F[_]] extends AnyRef

    Permalink
    Definition Classes
    EitherTFunctions

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. implicit def catsDataBifunctorForEitherT[F[_]](implicit F: Functor[F]): Bifunctor[[β$8$, γ$9$]EitherT[F, β$8$, γ$9$]]

    Permalink
    Definition Classes
    EitherTInstances
  6. implicit def catsDataBitraverseForEitherT[F[_]](implicit F: Traverse[F]): Bitraverse[[β$18$, γ$19$]EitherT[F, β$18$, γ$19$]]

    Permalink
    Definition Classes
    EitherTInstances1
  7. implicit def catsDataEqForEitherT[F[_], L, R](implicit F: Eq[F[Either[L, R]]]): Eq[EitherT[F, L, R]]

    Permalink
    Definition Classes
    EitherTInstances2
  8. implicit def catsDataFoldableForEitherT[F[_], L](implicit F: Foldable[F]): Foldable[[γ$17$]EitherT[F, L, γ$17$]]

    Permalink
    Definition Classes
    EitherTInstances1
  9. implicit def catsDataFunctorForEitherT[F[_], L](implicit F0: Functor[F]): Functor[[γ$22$]EitherT[F, L, γ$22$]]

    Permalink
    Definition Classes
    EitherTInstances3
  10. implicit def catsDataMonadErrorForEitherT[F[_], L](implicit F0: Monad[F]): MonadError[[γ$20$]EitherT[F, L, γ$20$], L]

    Permalink
    Definition Classes
    EitherTInstances2
  11. implicit def catsDataOrderForEitherT[F[_], L, R](implicit F: Order[F[Either[L, R]]]): Order[EitherT[F, L, R]]

    Permalink
    Definition Classes
    EitherTInstances
  12. implicit def catsDataPartialOrderForEitherT[F[_], L, R](implicit F: PartialOrder[F[Either[L, R]]]): PartialOrder[EitherT[F, L, R]]

    Permalink
    Definition Classes
    EitherTInstances1
  13. implicit def catsDataSemigroupKForEitherT[F[_], L](implicit F0: Monad[F]): SemigroupK[[γ$21$]EitherT[F, L, γ$21$]]

    Permalink
    Definition Classes
    EitherTInstances2
  14. implicit def catsDataShowForEitherT[F[_], L, R](implicit sh: Show[F[Either[L, R]]]): Show[EitherT[F, L, R]]

    Permalink
    Definition Classes
    EitherTInstances
  15. implicit def catsDataTransLiftForEitherT[E]: Aux[[α$13$[_$1], γ$14$]EitherT[α$13$, E, γ$14$], Functor]

    Permalink
    Definition Classes
    EitherTInstances
  16. implicit def catsDataTraverseForEitherT[F[_], L](implicit F: Traverse[F]): Traverse[[γ$12$]EitherT[F, L, γ$12$]]

    Permalink
    Definition Classes
    EitherTInstances
  17. implicit def catsMonoidForEitherT[F[_], L, A](implicit F: Monoid[F[Either[L, A]]]): Monoid[EitherT[F, L, A]]

    Permalink
    Definition Classes
    EitherTInstances
  18. implicit def catsSemigroupForEitherT[F[_], L, A](implicit F: Semigroup[F[Either[L, A]]]): Semigroup[EitherT[F, L, A]]

    Permalink
    Definition Classes
    EitherTInstances1
  19. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def fromEither[F[_]]: FromEitherPartiallyApplied[F]

    Permalink

    Transforms an Either into an EitherT, lifted into the specified Applicative.

    Transforms an Either into an EitherT, lifted into the specified Applicative.

    Note: The return type is a FromEitherPartiallyApplied[F], which has an apply method on it, allowing you to call fromEither like this:

    scala> import cats.implicits._
    scala> val t: Either[String, Int] = Either.right(3)
    scala> EitherT.fromEither[Option](t)
    res0: EitherT[Option, String, Int] = EitherT(Some(Right(3)))

    The reason for the indirection is to emulate currying type parameters.

    Definition Classes
    EitherTFunctions
  24. final def fromOption[F[_]]: FromOptionPartiallyApplied[F]

    Permalink

    Transforms an Option into an EitherT, lifted into the specified Applicative and using the second argument if the Option is a None.

    Transforms an Option into an EitherT, lifted into the specified Applicative and using the second argument if the Option is a None.

    scala> import cats.implicits._
    scala> val o: Option[Int] = None
    scala> EitherT.fromOption[List](o, "Answer not known.")
    res0: EitherT[List, String, Int]  = EitherT(List(Left(Answer not known.)))
    scala> EitherT.fromOption[List](Some(42), "Answer not known.")
    res1: EitherT[List, String, Int] = EitherT(List(Right(42)))
    Definition Classes
    EitherTFunctions
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. final def left[F[_], A, B](fa: F[A])(implicit F: Functor[F]): EitherT[F, A, B]

    Permalink
    Definition Classes
    EitherTFunctions
  29. final def liftT[F[_], A, B](fb: F[B])(implicit F: Functor[F]): EitherT[F, A, B]

    Permalink

    Alias for right

    Alias for right

    scala> import cats.data.EitherT
    scala> import cats.implicits._
    scala> val o: Option[Int] = Some(3)
    scala> val n: Option[Int] = None
    scala> EitherT.liftT(o)
    res0: cats.data.EitherT[Option,Nothing,Int] = EitherT(Some(Right(3)))
    scala> EitherT.liftT(n)
    res1: cats.data.EitherT[Option,Nothing,Int] = EitherT(None)
    Definition Classes
    EitherTFunctions
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def pure[F[_], A, B](b: B)(implicit F: Applicative[F]): EitherT[F, A, B]

    Permalink
    Definition Classes
    EitherTFunctions
  34. final def right[F[_], A, B](fb: F[B])(implicit F: Functor[F]): EitherT[F, A, B]

    Permalink
    Definition Classes
    EitherTFunctions
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from EitherTFunctions

Inherited from EitherTInstances

Inherited from EitherTInstances1

Inherited from EitherTInstances2

Inherited from EitherTInstances3

Inherited from AnyRef

Inherited from Any

Ungrouped