Module

Polyform.Input.Http

Package
purescript-polyform
Repository
paluh/purescript-polyform

#Value Source

type Value = Array (Maybe String)

This representation should cover all possible http query values: ?field, ?field=, ?field=value, ?field=value1&field=value2

#StringErr Source

type StringErr e = (required :: Unit, scalar :: NonEmpty Array String | e)

#TextInputErr Source

#EmailInput Source

type EmailInput attrs err = EmailInput attrs String (StringErr err)

#OptEmailInput Source

type OptEmailInput attrs err = OptEmailInput attrs String (StringErr err)

#SearchInput Source

type SearchInput attrs err = SearchInput attrs String (StringErr err)

#OptSearchInput Source

type OptSearchInput attrs err = OptSearchInput attrs String (StringErr err)

#PasswordInput Source

type PasswordInput attrs err = PasswordInput attrs String (StringErr err)

#OptPasswordInput Source

type OptPasswordInput attrs err = OptPasswordInput attrs String (StringErr err)

#TelInput Source

type TelInput attrs err = TelInput attrs String (StringErr err)

#OptTelInput Source

type OptTelInput attrs err = OptTelInput attrs String (StringErr err)

#TextInput Source

type TextInput attrs err = TextInput attrs String (StringErr err)

#OptTextInput Source

type OptTextInput attrs err = OptTextInput attrs String (StringErr err)

#UrlInput Source

type UrlInput attrs err = UrlInput attrs String (StringErr err)

#OptUrlInput Source

type OptUrlInput attrs err = OptUrlInput attrs String (StringErr err)

#textInputValidation Source

textInputValidation :: forall m err attrs. Monad m => { maxlength :: Maybe Int, minlength :: Maybe Int | attrs } -> Validation m (Array (Variant (TextInputErr err))) Value String

#fromFieldCoerce Source

fromFieldCoerce :: forall v' v m form e attrs. Monad m => Monoid e => (v -> v') -> ({ name :: String, value :: V e v | attrs } -> form) -> { name :: String, value :: V e v | attrs } -> Validation m e Value v -> Component m form Query v'

#fromField Source

fromField :: forall v m form e attrs. Monad m => Monoid e => ({ name :: String, value :: V e v | attrs } -> form) -> { name :: String, value :: V e v | attrs } -> Validation m e Value v -> Component m form Query v