Packages

final case class IorT[F[_], A, B](value: F[Ior[A, B]]) extends Product with Serializable

Source
IorT.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IorT
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new IorT(value: F[Ior[A, B]])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def ===(that: IorT[F, A, B])(implicit eq: Eq[F[Ior[A, B]]]): Boolean
  5. def applyAlt[D](ff: IorT[F, A, (B) => D])(implicit F: Apply[F], A: Semigroup[A]): IorT[F, A, D]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def bimap[C, D](fa: (A) => C, fb: (B) => D)(implicit F: Functor[F]): IorT[F, C, D]
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. def collectRight(implicit FA: Alternative[F], FM: FlatMap[F]): F[B]
  10. def combine(that: IorT[F, A, B])(implicit F: Apply[F], A: Semigroup[A], B: Semigroup[B]): IorT[F, A, B]
  11. def compare(that: IorT[F, A, B])(implicit ord: Order[F[Ior[A, B]]]): Int
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def exists(f: (B) => Boolean)(implicit F: Functor[F]): F[Boolean]
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. def flatMap[AA >: A, D](f: (B) => IorT[F, AA, D])(implicit F: Monad[F], AA: Semigroup[AA]): IorT[F, AA, D]
  16. def flatMapF[AA >: A, D](f: (B) => F[Ior[AA, D]])(implicit F: Monad[F], AA: Semigroup[AA]): IorT[F, AA, D]
  17. def fold[C](fa: (A) => C, fb: (B) => C, fab: (A, B) => C)(implicit F: Functor[F]): F[C]
  18. def foldF[C](fa: (A) => F[C], fb: (B) => F[C], fab: (A, B) => F[C])(implicit F: FlatMap[F]): F[C]

    Transform this IorT[F, A, B] into a F[C].

    Transform this IorT[F, A, B] into a F[C].

    Example:

    scala> import cats.data.{Ior, IorT}
    
    scala> val iorT: IorT[List, String, Int] = IorT[List, String, Int](List(Ior.Right(123),Ior.Left("abc"), Ior.Both("abc", 123)))
    scala> iorT.foldF(string => string.split("").toList, int => List(int.toString), (string, int) => string.split("").toList ++ List(int.toString))
    val res0: List[String] = List(123, a, b, c, a, b, c, 123)
  19. def foldLeft[C](c: C)(f: (C, B) => C)(implicit F: Foldable[F]): C
  20. def foldRight[C](lc: Eval[C])(f: (B, Eval[C]) => Eval[C])(implicit F: Foldable[F]): Eval[C]
  21. def forall(f: (B) => Boolean)(implicit F: Functor[F]): F[Boolean]
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def getOrElse[BB >: B](default: => BB)(implicit F: Functor[F]): F[BB]
  24. def getOrElseF[BB >: B](default: => F[BB])(implicit F: Monad[F]): F[BB]
  25. def getOrRaise[E](e: => E)(implicit F: MonadError[F, _ >: E]): F[B]

    *

    *

    Like getOrElseF but accept an error E and raise it when the inner Ior is Left

    Equivalent to getOrElseF(F.raiseError(e)))

    Example:

    scala> import cats.data.IorT
    scala> import cats.implicits._
    scala> import scala.util.{Success, Failure, Try}
    
    scala> val iorT: IorT[Try,String,Int] = IorT.leftT("abc")
    scala> iorT.getOrRaise(new RuntimeException("ERROR!"))
    res0: Try[Int] = Failure(java.lang.RuntimeException: ERROR!)
  26. def isBoth(implicit F: Functor[F]): F[Boolean]
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def isLeft(implicit F: Functor[F]): F[Boolean]
  29. def isRight(implicit F: Functor[F]): F[Boolean]
  30. def leftFlatMap[BB >: B, C](f: (A) => IorT[F, C, BB])(implicit F: Monad[F], BB: Semigroup[BB]): IorT[F, C, BB]
  31. def leftMap[C](f: (A) => C)(implicit F: Functor[F]): IorT[F, C, B]
  32. def leftSemiflatMap[C](f: (A) => F[C])(implicit F: Monad[F]): IorT[F, C, B]
  33. def map[D](f: (B) => D)(implicit F: Functor[F]): IorT[F, A, D]
  34. def mapK[G[_]](f: ~>[F, G]): IorT[G, A, B]
  35. def merge[AA >: A](implicit ev: <:<[B, AA], F: Functor[F], AA: Semigroup[AA]): F[AA]
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. def productElementNames: Iterator[String]
    Definition Classes
    Product
  40. def semiflatMap[D](f: (B) => F[D])(implicit F: Monad[F]): IorT[F, A, D]
  41. def show(implicit show: Show[F[Ior[A, B]]]): String
  42. def subflatMap[AA >: A, D](f: (B) => Ior[AA, D])(implicit F: Functor[F], AA: Semigroup[AA]): IorT[F, AA, D]
  43. def swap(implicit F: Functor[F]): IorT[F, B, A]
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. def to[G[_]](implicit F: Functor[F], G: Alternative[G]): F[G[B]]
  46. def toEither(implicit F: Functor[F]): EitherT[F, A, B]
  47. def toNested: Nested[F, [β$0$]Ior[A, β$0$], B]
  48. def toNestedValidated(implicit F: Functor[F]): Nested[F, [β$2$]Validated[A, β$2$], B]
  49. def toOption(implicit F: Functor[F]): OptionT[F, B]
  50. def toValidated(implicit F: Functor[F]): F[Validated[A, B]]
  51. def transform[C, D](f: (Ior[A, B]) => Ior[C, D])(implicit F: Functor[F]): IorT[F, C, D]
  52. def traverse[G[_], D](f: (B) => G[D])(implicit traverseF: Traverse[F], applicativeG: Applicative[G]): G[IorT[F, A, D]]
  53. val value: F[Ior[A, B]]
  54. def valueOr[BB >: B](f: (A) => BB)(implicit F: Functor[F], BB: Semigroup[BB]): F[BB]
  55. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  56. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped