object These
- Alphabetic
- By Inheritance
- These
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Value Members
- implicit def TheseAssociative[A, B](implicit arg0: Associative[A], arg1: Associative[B]): Associative[These[A, B]]
Derives an
Associative[These[A, B]]
given anAssociative[A]
and anAssociative[B]
. - implicit def TheseAssociativeEither[A](implicit arg0: Associative[A]): AssociativeEither[[+b]These[A, b]]
The
AssociativeEither
instance forThese
. - implicit def TheseCommutative[A, B](implicit arg0: Commutative[A], arg1: Commutative[B]): Commutative[These[A, B]]
Derives a
Commutative[These[A, B]]
given aCommutative[A]
and aCommutative[B]
. - implicit def TheseCommutativeBoth[A](implicit arg0: Commutative[A]): CommutativeBoth[[+b]These[A, b]]
The
CommutativeBoth
instance forThese
. - implicit def TheseCovariant[A]: Covariant[[+b]These[A, b]]
The
Covariant
instance forThese
. - implicit def TheseDebug[A, B](implicit arg0: Debug[A], arg1: Debug[B]): Debug[These[A, B]]
Derives a
Debug[These[A, B]]
given aDebug[A]
and aDebug[B]
. - implicit def TheseDeriveEqual[A](implicit arg0: Equal[A]): DeriveEqual[[+b]These[A, b]]
The
DeriveEqual
instance forThese
. - implicit def TheseEqual[A, B](implicit arg0: Equal[A], arg1: Equal[B]): Equal[These[A, B]]
Derives an
Equal[These[A, B]]
given anEqual[A]
and anEqual[B]
. - implicit def TheseForEach[A]: ForEach[[+b]These[A, b]]
The
ForEach
instance forThese
. - implicit def TheseHash[A, B](implicit arg0: Hash[A], arg1: Hash[B]): Hash[These[A, B]]
Derives a
Hash[These[A, B]]
given aHash[A]
and aHash[B]
. - implicit def TheseIdentityBoth[A](implicit arg0: Associative[A]): IdentityBoth[[+b]These[A, b]]
The
IdentityBoth
instance forThese
. - implicit def TheseIdentityFlatten[A](implicit arg0: Associative[A]): IdentityFlatten[[+b]These[A, b]]
The
IdentityFlatten
instance forThese
. - def both[A, B](a: A, b: B): These[A, B]
Constucts a
Both
with anA
value and aB
value. - def bothNonEmptyChunk[A, B](a: A, b: B): These[NonEmptyChunk[A], B]
Constructs a
Both
with anA
value and aB
value, wrapping theA
value in aNonEmptyChunk
.Constructs a
Both
with anA
value and aB
value, wrapping theA
value in aNonEmptyChunk
. This is useful when usingThese
to model computations that may both succeed and fail to use theAssociative
instance forNonEmptyChunk
to accumulate all errors. - def fromEither[A, B](eab: Either[A, B]): These[A, B]
Constructs a
These
from anEither
value. - def fromOption[A](ob: Option[A]): These[Unit, A]
Constructs a
These
from anOption
value. - def fromOptions[A, B](opA: Option[A], opB: Option[B]): Option[These[A, B]]
Constructor from two options to an option of These.
- def fromValidation[E, A](validation: Validation[E, A]): These[NonEmptyChunk[E], A]
Constructs a
These
from aValidation
value. - def left[A](a: A): These[A, Nothing]
Constructs a
Left
with anA
value. - def leftNonEmptyChunk[A](a: A): These[NonEmptyChunk[A], Nothing]
Constructs a
Left
with anA
value, wrapping theA
value in aNonEmptyChunk
.Constructs a
Left
with anA
value, wrapping theA
value in aNonEmptyChunk
. This is useful when usingThese
to model computations that may both succeed and fail to use theAssociative
instance forNonEmptyChunk
to accumulate multiple errors. - def right[A](a: A): These[Nothing, A]
Constructs a
Right
with anA
value. - val unit: These[Nothing, Unit]
A
Right
with theUnit
value.