Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype MaxLength = MaxLength {
- _unMaxLength :: Int
- data MaxLengthInvalid = MaxLengthInvalid MaxLength Text
- maxLengthVal :: MaxLength -> Text -> Maybe MaxLengthInvalid
- newtype MinLength = MinLength {
- _unMinLength :: Int
- data MinLengthInvalid = MinLengthInvalid MinLength Text
- minLengthVal :: MinLength -> Text -> Maybe MinLengthInvalid
- newtype PatternValidator = PatternValidator {}
- data PatternInvalid
- patternVal :: PatternValidator -> Text -> Maybe PatternInvalid
maxLength
data MaxLengthInvalid Source #
maxLengthVal :: MaxLength -> Text -> Maybe MaxLengthInvalid Source #
The spec requires "maxLength"
to be non-negative.
minLength
data MinLengthInvalid Source #
minLengthVal :: MinLength -> Text -> Maybe MinLengthInvalid Source #
The spec requires "minLength"
to be non-negative.
pattern
newtype PatternValidator Source #
data PatternInvalid Source #
patternVal :: PatternValidator -> Text -> Maybe PatternInvalid Source #