|
|
|
| Description |
| HTML forms generation and validation.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data Form |
| Constructors | | Instances | |
|
|
| data FormField |
| Constructors | | Instances | |
|
|
| data HTMLForm |
| Constructors | | HTMLForm | | | visibleFields :: HTML | | | hiddenFields :: HTML | | | htmlFormName :: String | | | formId :: String | | | formAction :: String | |
|
|
|
|
| data HTMLTag |
| Constructors | | Tag | | | | Text String | | | Translatable String | |
|
|
|
| type HTML = [HTMLTag] |
|
| class Widget w where |
| Types of this class represent HTML widgets
| | | Associated Types | | type WContent w | | Type of widget content; not used at the moment.
|
|
| | | Methods | | html | | :: w | A widget
| | -> String | Widget's html "name" attribute
| | -> String | Value of widget
| | -> HTMLTag | | | Generate HTML for widget
|
| | | wRead :: String -> WContent w | | Read widget's value from string. Not used yet.
|
| | Instances | |
|
|
| type FormProcessors = [Form -> FormController] |
| Form plugin transforms a Form
|
|
| type FormController = AController Form |
|
| type HTMLProcessors = [HTML -> HTMLController] |
|
| type HTMLController = AController HTML |
|
| type FormValidator = HttpRequest -> Either [(String, String)] Model |
| Form validator takes request and returns either list of erroneus filled field or filled Model
|
|
| type FieldValidator = HttpRequest -> String -> String -> Either String String |
| Field validator takes field value and returns either error message or validated value
|
|
| Produced by Haddock version 2.4.2 |