yesod-form-1.3.5.1: Form handling support for Yesod Web Framework

Safe HaskellNone

Yesod.Form.Types

Contents

Synopsis

Helpers

data Enctype Source

The encoding type required by a form. The ToHtml instance produces values that can be inserted directly into HTML.

Constructors

UrlEncoded 
Multipart 

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 FormResults.

data Ints Source

Constructors

IntCons Int Ints 
IntSingle Int 

Instances

Form

newtype AForm m a Source

Constructors

AForm 

Instances

MonadTrans AForm 
Monad m => Functor (AForm m) 
Monad m => Applicative (AForm m) 
(Monad m, Monoid a) => Monoid (AForm m a) 

Build forms

data Field m a Source

Constructors

Field 

data FieldSettings master Source

Constructors

FieldSettings 

Fields

fsLabel :: SomeMessage master
 
fsTooltip :: Maybe (SomeMessage master)
 
fsId :: Maybe Text
 
fsName :: Maybe Text
 
fsAttrs :: [(Text, Text)]
 

Instances

data FieldView site Source

Constructors

FieldView 

type FieldViewFunc m aSource

Arguments

 = Text

ID

-> Text

Name

-> [(Text, Text)]

Attributes

-> Either Text a

Either (invalid text) or (legitimate result)

-> Bool

Required?

-> WidgetT (HandlerSite m) IO ()