Module

Polyform.Dual.Validators.UrlEncoded

Package
purescript-polyform-validators
Repository
lambdaterms/purescript-polyform-validators

#Decoded Source

newtype Decoded

Because Map has quite unexpected instance for Monoid we have to provide our own appending instance.

Constructors

Instances

#Dual Source

type Dual m e a = Dual (Validator m (Errors e)) Decoded a

#Errors Source

type Errors e = Errors (Error + e)

#FieldValueDual Source

#array Source

array :: forall m. Monad m => FieldValueDual m (Array String)

#boolean Source

boolean :: forall m. Monad m => FieldValueDual m Boolean

#field Source

field :: forall m e a. Monad m => String -> FieldValueDual m a -> Dual m e a

#int Source

int :: forall m. Monad m => FieldValueDual m Int

#number Source

number :: forall m. Monad m => FieldValueDual m Number

#optional Source

optional :: forall m a. Monad m => FieldValueDual m a -> FieldValueDual m (Maybe a)

#query Source

query :: forall m e. Monad m => Options -> Dual (Validator m (Errors e)) String Decoded

#string Source

string :: forall m. Monad m => FieldValueDual m String