digestive-functors-blaze-0.0.2.0: Snap backend for the digestive-functors library

Text.Digestive.Blaze.Html5

Synopsis

Documentation

type BlazeFormHtml = FormHtml HtmlSource

Form HTML generated by blaze

inputTextAreaSource

Arguments

:: (Monad m, Functor m, FormInput i f) 
=> Maybe Int

Rows

-> Maybe Int

Columns

-> Maybe String

Default input

-> Form m i e BlazeFormHtml String

Result

inputTextRead :: (Monad m, Functor m, FormInput i f, Show a, Read a) => e -> Maybe a -> Form m i e BlazeFormHtml aSource

inputRadioSource

Arguments

:: (Monad m, Functor m, FormInput i f, Eq a) 
=> Bool

Use br tags

-> a

Default option

-> [(a, Html)]

Choices with their names

-> Form m i e BlazeFormHtml a

Resulting form

inputFileSource

Arguments

:: (Monad m, Functor m, FormInput i f) 
=> Form m i e BlazeFormHtml (Maybe f)

Form

submitSource

Arguments

:: Monad m 
=> String

Text on the submit button

-> Form m String e BlazeFormHtml ()

Submit button