FromCatsValidated
class FromCatsValidated[L[_]](implicit A: Applicative[L], SK: SemigroupK[L], F: Foldable[L]) extends AccumulateLike[[_] =>> ValidatedUK[L, _$4]]
Validated instance for cats.data.Validated
where error is collection type like cats.data.NonEmptyList
or
cats.data.NonEmptyChain
Value members
Concrete methods
Inherited methods
Folds V[E]
into B
using provided functions for valid and invalid cases
Folds V[E]
into B
using provided functions for valid and invalid cases
- Inherited from:
- Validated
Returns v
if cond
is false else returns valid
Returns v
if cond
is false else returns valid
- Inherited from:
- Validated
Returns v
if cond
is true else returns valid
Returns v
if cond
is true else returns valid
- Inherited from:
- Validated
def whenInvalid[E](v: ValidatedUK[L, E])(f: ValidatedUK[L, E] => ValidatedUK[L, E]): ValidatedUK[L, E]
Returns f
applied to a
if a
is invalid else returns a
Returns f
applied to a
if a
is invalid else returns a
- Inherited from:
- Validated
Returns o
if a
is valid else returns a
Returns o
if a
is valid else returns a
- Inherited from:
- Validated