digestive-functors-0.6.0.0: A practical formlet library

Safe HaskellNone

Text.Digestive.Form.Internal.Field

Synopsis

Documentation

data Field v a whereSource

A single input field. This usually maps to a single HTML input element.

Constructors

Singleton :: a -> Field v a 
Text :: Text -> Field v Text 
Choice :: [(Text, [(Text, (a, v))])] -> Int -> Field v (a, Int) 
Bool :: Bool -> Field v Bool 
File :: Field v (Maybe FilePath) 

Instances

Show (Field v a) 

data SomeField v Source

Constructors

forall a . SomeField (Field v a) 

evalFieldSource

Arguments

:: Method

Get/Post

-> [FormInput]

Given input

-> Field v a

Field

-> a

Result

fieldMapView :: (v -> w) -> Field v a -> Field w aSource