ValidationState

works.iterative.forms.ValidationState
See theValidationState companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Invalid(errors: NonEmptyChunk[(IdPath, UserMessage)]) extends ValidationState[Nothing]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait ValidationState[Nothing]
class Object
trait Matchable
class Any
Show all
object Invalid

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Invalid.type
final case class Unknown(info: List[(IdPath, UserMessage)]) extends ValidationState[Nothing]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ValidationState[Nothing]
class Object
trait Matchable
class Any
Show all
final case class Valid[OutputValue](value: OutputValue) extends ValidationState[OutputValue]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ValidationState[OutputValue]
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def failIf[A](id: IdPath)(condition: A => Boolean)(failMsg: UserMessage)(a: A): ValidationState[A]
def failUnless[A](id: IdPath)(condition: A => Boolean)(failMsg: UserMessage)(a: A): ValidationState[A]
def lift[A, B](f: A => ValidationState[B]): (ValidationState[A]) => ValidationState[B]
def liftM[F[_] : Covariant, A, B](f: A => F[ValidationState[B]]): (ValidationState[A]) => F[ValidationState[B]]

Givens

Givens

given identityValidationState[A : Identity]: identityValidationState[A]