package optics
- Alphabetic
- By Inheritance
- optics
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract class ValidFormat[E, T, A] extends Serializable
A validating and normalizing optic.
A validating and normalizing optic. Behaves similarly to
Format, but the getter returns aValidated[E, A]instead of anOption[A].Laws are the same for
Format, except thatcoverageallows no normalization to happen as long as there are invalid inputs.Composition with
Formator stronger optics (PrismandIso) yields anotherValidFormat, and require providing anEinstance for the invalid cases. - type ValidFormatInput[A] = ValidFormat[NonEmptyChain[String], String, A]
- trait ValidFormatInputInstances extends AnyRef
Convenience ValidFormatInput instances.
- type ValidFormatNec[E, T, A] = ValidFormat[NonEmptyChain[E], T, A]
- type ValidFormatNel[E, T, A] = ValidFormat[NonEmptyList[E], T, A]
Value Members
- object ValidFormat extends Serializable
- object ValidFormatInput extends ValidFormatInputInstances
Convenience version of
ValidFormatwhen the error type isNonEmptyChain[String]andT = String. - object ValidFormatNec
Convenience version of
ValidFormatwhen the error type isNonEmptyChain[E]. - object ValidFormatNel
Convenience version of
ValidFormatwhen the error type isNonEmptyList[E].