Trait/Object

org.atnos.eff

ValidateEffect

Related Docs: object ValidateEffect | package eff

Permalink

trait ValidateEffect extends ValidateCreation with ValidateInterpretation

Effect for computation which can fail but will accumulate errors

The runValidate interpreter just collects the messages and returns them at the end

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValidateEffect
  2. ValidateInterpretation
  3. ValidateCreation
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def catchAllWrongs[R, E, A](effect: Eff[R, A])(handle: (NonEmptyList[E]) ⇒ Eff[R, A])(implicit member: <=[[β$23$]Validate[E, β$23$], R]): Eff[R, A]

    Permalink

    catch and handle all wrong values

    catch and handle all wrong values

    Definition Classes
    ValidateInterpretation
  6. def catchFirstWrong[R, E, A](effect: Eff[R, A])(handle: (E) ⇒ Eff[R, A])(implicit member: <=[[β$21$]Validate[E, β$21$], R]): Eff[R, A]

    Permalink

    catch and handle the first wrong value

    catch and handle the first wrong value

    Definition Classes
    ValidateInterpretation
  7. def catchLastWrong[R, E, A](effect: Eff[R, A])(handle: (E) ⇒ Eff[R, A])(implicit member: <=[[β$22$]Validate[E, β$22$], R]): Eff[R, A]

    Permalink

    catch and handle the last wrong value

    catch and handle the last wrong value

    Definition Classes
    ValidateInterpretation
  8. def catchWrongs[R, E, A, S[_]](effect: Eff[R, A])(handle: (S[E]) ⇒ Eff[R, A])(implicit arg0: Applicative[S], member: <=[[β$19$]Validate[E, β$19$], R], semi: Semigroup[S[E]]): Eff[R, A]

    Permalink

    catch and handle possible wrong values

    catch and handle possible wrong values

    Definition Classes
    ValidateInterpretation
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def correct[R, E, A](a: A)(implicit m: |=[[β$5$]Validate[E, β$5$], R]): Eff[R, A]

    Permalink

    create a correct value

    create a correct value

    Definition Classes
    ValidateCreation
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def runIorMap[R, U, E, L, A](effect: Eff[R, A])(map: (E) ⇒ L)(implicit arg0: Semigroup[L], m: Aux[[β$16$]Validate[E, β$16$], R, U]): Eff[U, Ior[L, A]]

    Permalink

    run the validate effect, yielding a list of failures or A or both

    run the validate effect, yielding a list of failures or A or both

    Definition Classes
    ValidateInterpretation
  21. def runIorNel[R, U, E, A](r: Eff[R, A])(implicit m: Aux[[β$15$]Validate[E, β$15$], R, U]): Eff[U, IorNel[E, A]]

    Permalink

    run the validate effect, yielding a non-empty list of failures or A or both

    run the validate effect, yielding a non-empty list of failures or A or both

    Definition Classes
    ValidateInterpretation
  22. def runMap[R, U, E, L, A](effect: Eff[R, A])(map: (E) ⇒ L)(implicit arg0: Semigroup[L], m: Aux[[β$14$]Validate[E, β$14$], R, U]): Eff[U, Either[L, A]]

    Permalink

    run the validate effect, yielding a list of failures Either A

    run the validate effect, yielding a list of failures Either A

    Definition Classes
    ValidateInterpretation
  23. def runNel[R, U, E, A](r: Eff[R, A])(implicit m: Aux[[β$13$]Validate[E, β$13$], R, U]): Eff[U, Either[NonEmptyList[E], A]]

    Permalink

    run the validate effect, yielding a non-empty list of failures Either A

    run the validate effect, yielding a non-empty list of failures Either A

    Definition Classes
    ValidateInterpretation
  24. def runValidatedNel[R, U, E, A](r: Eff[R, A])(implicit m: Aux[[β$12$]Validate[E, β$12$], R, U]): Eff[U, ValidatedNel[E, A]]

    Permalink

    run the validate effect, yielding a ValidatedNel

    run the validate effect, yielding a ValidatedNel

    Definition Classes
    ValidateInterpretation
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def validateCheck[R, E](condition: Boolean, e: ⇒ E)(implicit m: |=[[β$10$]Validate[E, β$10$], R]): Eff[R, Unit]

    Permalink

    check a correct condition

    check a correct condition

    Definition Classes
    ValidateCreation
  28. def validateEither[R, E, A](either: Either[E, A])(implicit m: |=[[β$1$]Validate[E, β$1$], R]): Eff[R, Unit]

    Permalink

    create an Validate effect from a single Either value

    create an Validate effect from a single Either value

    Definition Classes
    ValidateCreation
  29. def validateIor[R, E, A](ior: Ior[E, A])(implicit m: |=[[β$2$]Validate[E, β$2$], R]): Eff[R, Unit]

    Permalink

    create an Validate effect from a single Ior value

    create an Validate effect from a single Ior value

    Definition Classes
    ValidateCreation
  30. def validateOption[R, E, A](option: Option[A], e: ⇒ E)(implicit m: |=[[β$0$]Validate[E, β$0$], R]): Eff[R, Unit]

    Permalink

    create an Validate effect from a single Option value

    create an Validate effect from a single Option value

    Definition Classes
    ValidateCreation
  31. def validateValue[R, E, A](condition: Boolean, a: ⇒ A, e: ⇒ E)(implicit m: |=[[β$11$]Validate[E, β$11$], R]): Eff[R, A]

    Permalink

    check a correct value

    check a correct value

    Definition Classes
    ValidateCreation
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def warning[R, E, A](a: A, e: E)(implicit m: |=[[β$9$]Validate[E, β$9$], R]): Eff[R, A]

    Permalink

    create a correct value with warning

    create a correct value with warning

    Definition Classes
    ValidateCreation
  36. def warning[R, E](e: E)(implicit m: |=[[β$7$]Validate[E, β$7$], R]): Eff[R, Unit]

    Permalink

    create a pure warning

    create a pure warning

    Definition Classes
    ValidateCreation
  37. def wrong[R, E](e: E)(implicit m: |=[[β$3$]Validate[E, β$3$], R]): Eff[R, Unit]

    Permalink

    create a failed value

    create a failed value

    Definition Classes
    ValidateCreation

Deprecated Value Members

  1. def catchWrong[R, E, A](effect: Eff[R, A])(handle: (E) ⇒ Eff[R, A])(implicit member: <=[[β$24$]Validate[E, β$24$], R]): Eff[R, A]

    Permalink

    catch and handle possible wrong values

    catch and handle possible wrong values

    Definition Classes
    ValidateInterpretation
    Annotations
    @deprecated
    Deprecated

    (Since version 5.4.2) Use catchFirstWrong or more general catchWrongs instead

Inherited from ValidateInterpretation

Inherited from ValidateCreation

Inherited from AnyRef

Inherited from Any

Ungrouped