p
cats
package cats
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- cats
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- type :<:[F[_], G[_]] = InjectK[F, G]
- type :≺:[F[_], G[_]] = InjectK[F, G]
- type Comparison = cats.kernel.Comparison
- type Endo[A] = (A) ⇒ A
- type Eq[A] = cats.kernel.Eq[A]
-
trait
ErrorControl[F[_], G[_], E] extends Serializable
A type class for principled error handling.
A type class for principled error handling.
ErrorControl
is designed to be a supplement toMonadError
with more precise typing. It is defined as a relationship between an error-handling typeF[A]
and a non-error-handling typeG[A]
. This means a value ofF[A]
is able to produce either a value ofA
or an error of typeE
. UnlikeMonadError
'shandleError
method, thecontrolError
function defined in this type class will yield a value that free of any errors, since they've all been handled.Must adhere to the laws defined in cats.laws.ErrorControlLaws.
- type Group[A] = cats.kernel.Group[A]
- type Hash[A] = cats.kernel.Hash[A]
- type Id[A] = A
- type Monoid[A] = cats.kernel.Monoid[A]
- type Order[A] = cats.kernel.Order[A]
- type PartialOrder[A] = cats.kernel.PartialOrder[A]
- type Semigroup[A] = cats.kernel.Semigroup[A]
- type ~>[F[_], G[_]] = FunctionK[F, G]
- type ⊤ = Any
- type ⊥ = Nothing
-
type
Cartesian[F[_]] = Semigroupal[F]
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.0-RC1) renamed to Semigroupal
Value Members
- val Comparison: cats.kernel.Comparison.type
- val Eq: cats.kernel.Eq.type
- val Group: cats.kernel.Group.type
- val Hash: cats.kernel.Hash.type
- val Monoid: cats.kernel.Monoid.type
- val Order: cats.kernel.Order.type
- val PartialOrder: cats.kernel.PartialOrder.type
- val Semigroup: cats.kernel.Semigroup.type
- implicit val catsInstancesForId: Bimonad[Id] with CommutativeMonad[Id] with Comonad[Id] with NonEmptyTraverse[Id] with Distributive[Id]
- implicit val catsParallelForId: Parallel[Id, Id]
- implicit val catsRepresentableForId: Aux[Id, Unit]
- object ErrorControl extends Serializable