Packages

  • package root
    Definition Classes
    root
  • package cats

    The cats root package contains all the trait signatures of most Scala type classes.

    The cats root package contains all the trait signatures of most Scala type classes.

    Cats type classes are implemented using the approach from the Type classes as objects and implicits article.

    For each type class, cats provides three pieces: - Its signature: a trait that is polymorphic on a type parameter. Type class traits inherit from other type classes to indicate that any implementation of the lower type class (e.g. Applicative) can also serve as an instance for the higuer type class (e.g. Functor). - Type class 'instances, which are classes and objects that implement one or more type class signatures for some specific types. Type class instances for several data types from the Java or Scala standard libraries are declared in the subpackage cats.instances. - Syntax extensions, each of which provides the methods of the type class defines as extension methods (which in Scala 2 are encoded as implicit classes) for values of any type F; given that an instance of the type class for the receiver type (this) is in the implicit scope. Symtax extensions are declared in the cats.syntax package. - A set of laws, that are also generic on the type of the class, and are only defined on the operations of the type class. The purpose of these laws is to declare some algebraic relations (equations) between Scala expressions involving the operations of the type class, and test (but not verify) that implemented instances satisfy those equations. Laws are defined in the cats-laws package.

    Although most of cats type classes are declared in this package, some are declared in other packages: - type classes that operate on base types (kind *), and their implementations for standard library types, are contained in cats.kernel, which is a different SBT project. However, they are re-exported from this package. - type classes of kind F[_, _], such as cats.arrow.Profunctor" or cats.arrow.Arrow, which are relevant for Functional Reactive Programming or optics, are declared in the cats.arrow package. - Also, those type classes that abstract over (pure or impure) functional runtime effects are declared in the cats-effect library. - Some type classes for which no laws can be provided are left out of the main road, in a small and dirty alley. These are the alleycats.

    Definition Classes
    root
  • package data
    Definition Classes
    cats
  • AndThen
  • AppFunc
  • Binested
  • BinestedBifoldable
  • BinestedBitraverse
  • BinestedInstances
  • Chain
  • Cokleisli
  • Const
  • Cont
  • ContT
  • EitherK
  • EitherT
  • Func
  • IdT
  • IndexedReaderWriterStateT
  • IndexedState
  • IndexedStateT
  • Ior
  • IorT
  • Kleisli
  • Nested
  • NonEmptyChainOps
  • NonEmptyList
  • NonEmptyMapOps
  • NonEmptySetOps
  • NonEmptyVector
  • OneAnd
  • Op
  • OptionT
  • Reader
  • ReaderWriterState
  • ReaderWriterStateT
  • RepresentableStore
  • State
  • StateT
  • Store
  • Tuple2K
  • Validated
  • Writer
  • WriterT
  • ZipList
  • ZipStream
  • ZipVector

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

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

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( ... ) @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. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def exists(f: (B) ⇒ Boolean)(implicit F: Functor[F]): F[Boolean]
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatMap[AA >: A, D](f: (B) ⇒ IorT[F, AA, D])(implicit F: Monad[F], AA: Semigroup[AA]): IorT[F, AA, D]
  15. def flatMapF[AA >: A, D](f: (B) ⇒ F[Ior[AA, D]])(implicit F: Monad[F], AA: Semigroup[AA]): IorT[F, AA, D]
  16. def fold[C](fa: (A) ⇒ C, fb: (B) ⇒ C, fab: (A, B) ⇒ C)(implicit F: Functor[F]): F[C]
  17. def foldLeft[C](c: C)(f: (C, B) ⇒ C)(implicit F: Foldable[F]): C
  18. def foldRight[C](lc: Eval[C])(f: (B, Eval[C]) ⇒ Eval[C])(implicit F: Foldable[F]): Eval[C]
  19. def forall(f: (B) ⇒ Boolean)(implicit F: Functor[F]): F[Boolean]
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def getOrElse[BB >: B](default: ⇒ BB)(implicit F: Functor[F]): F[BB]
  22. def getOrElseF[BB >: B](default: ⇒ F[BB])(implicit F: Monad[F]): F[BB]
  23. def isBoth(implicit F: Functor[F]): F[Boolean]
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def isLeft(implicit F: Functor[F]): F[Boolean]
  26. def isRight(implicit F: Functor[F]): F[Boolean]
  27. def leftFlatMap[BB >: B, C](f: (A) ⇒ IorT[F, C, BB])(implicit F: Monad[F], BB: Semigroup[BB]): IorT[F, C, BB]
  28. def leftMap[C](f: (A) ⇒ C)(implicit F: Functor[F]): IorT[F, C, B]
  29. def leftSemiflatMap[C](f: (A) ⇒ F[C])(implicit F: Monad[F]): IorT[F, C, B]
  30. def map[D](f: (B) ⇒ D)(implicit F: Functor[F]): IorT[F, A, D]
  31. def mapK[G[_]](f: ~>[F, G]): IorT[G, A, B]
  32. def merge[AA >: A](implicit ev: <:<[B, AA], F: Functor[F], AA: Semigroup[AA]): F[AA]
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. def semiflatMap[D](f: (B) ⇒ F[D])(implicit F: Monad[F]): IorT[F, A, D]
  37. def show(implicit show: Show[F[Ior[A, B]]]): String
  38. def subflatMap[AA >: A, D](f: (B) ⇒ Ior[AA, D])(implicit F: Functor[F], AA: Semigroup[AA]): IorT[F, AA, D]
  39. def swap(implicit F: Functor[F]): IorT[F, B, A]
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. def to[G[_]](implicit F: Functor[F], G: Alternative[G]): F[G[B]]
  42. def toEither(implicit F: Functor[F]): EitherT[F, A, B]
  43. def toNested: Nested[F, [β$0$]Ior[A, β$0$], B]
  44. def toNestedValidated(implicit F: Functor[F]): Nested[F, [β$2$]Validated[A, β$2$], B]
  45. def toOption(implicit F: Functor[F]): OptionT[F, B]
  46. def toValidated(implicit F: Functor[F]): F[Validated[A, B]]
  47. def transform[C, D](f: (Ior[A, B]) ⇒ Ior[C, D])(implicit F: Functor[F]): IorT[F, C, D]
  48. def traverse[G[_], D](f: (B) ⇒ G[D])(implicit traverseF: Traverse[F], applicativeG: Applicative[G]): G[IorT[F, A, D]]
  49. val value: F[Ior[A, B]]
  50. def valueOr[BB >: B](f: (A) ⇒ BB)(implicit F: Functor[F], BB: Semigroup[BB]): F[BB]
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped