trasa-form-0.3.2.0: generate forms using lucid, ditto and trasa

Safe HaskellNone
LanguageHaskell2010

Trasa.Form

Contents

Synopsis

Documentation

reform Source #

Arguments

:: (MonadIO m, Monoid view) 
=> ([(Text, Text)] -> view -> view)

wrap raw form html inside a form tag

-> Text

form name prefix

-> Form (TrasaT m) Text err view a

the formlet

-> TrasaT m (Result err a, view) 

reformQP Source #

Arguments

:: (MonadIO m, Monoid view) 
=> ([(Text, Text)] -> view -> view)

wrap raw form html inside a form tag

-> Text

form name prefix

-> Form (TrasaT m) QueryParam err view a

the formlet

-> TrasaT m (Result err a, view) 

reformPost Source #

Arguments

:: (MonadIO m, Monoid view) 
=> ([(Text, Text)] -> view -> view)

wrap raw form html inside a form tag

-> Text

form name prefix

-> ByteString 
-> Form (TrasaT m) QueryParam err view a

the formlet

-> TrasaT m (Result err a, view) 

class FormError input err where #

A Class to lift a CommonFormError into an application-specific error type

Methods

commonFormError :: CommonFormError input -> err #

Instances
FormError Text Text 
Instance details

Defined in Ditto.Backend

FormError QueryParam Text Source # 
Instance details

Defined in Trasa.Form

Orphan instances