trasa-form-0.1.0.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 e where #

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

Associated Types

type ErrorInputType e :: Type #

Instances
FormError Text Source # 
Instance details

Defined in Trasa.Form

Associated Types

type ErrorInputType Text :: Type #

Orphan instances

FormError Text Source # 
Instance details

Associated Types

type ErrorInputType Text :: Type #