- data Enctype
- = UrlEncoded
- | Multipart
- data FormResult a
- = FormMissing
- | FormFailure [Text]
- | FormSuccess a
- type Env = [(Text, Text)]
- type FileEnv = [(Text, FileInfo)]
- data Ints
- type Form master m a = RWST (Maybe (Env, FileEnv), master, [Text]) Enctype Ints m a
- newtype AForm xml master m a = AForm {}
- data Field xml msg a = Field {}
- data FieldSettings msg = FieldSettings {}
- data FieldView xml = FieldView {}
Helpers
The encoding type required by a form. The ToHtml
instance produces values
that can be inserted directly into HTML.
data FormResult a Source
A form can produce three different results: there was no data available, the data was invalid, or there was a successful parse.
The Applicative
instance will concatenate the failure messages in two
FormResult
s.
Functor FormResult | |
Applicative FormResult | |
Show a => Show (FormResult a) | |
Monoid m => Monoid (FormResult m) |
Form
Build forms
data FieldSettings msg Source
a ~ Text => IsString (FieldSettings a) |