scotty-form-0.1.0.0: Html form validation using `ditto`

Safe HaskellNone
LanguageHaskell2010

Web.Scotty.Form

Contents

Documentation

reform Source #

Arguments

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

wrap raw form html inside a form tag

-> Text

form name prefix

-> Form ActionM Text err view a

the formlet

-> ActionM (Result err a, view) 

reformSingle :: ([(Text, Text)] -> view -> view) -> Text -> Form ActionM Text err view a -> ActionM (Result err a, view) Source #

simpleReformGET :: (Show b, Applicative f) => Text -> Form ActionM Text err (HtmlT f ()) b -> ActionM (Result err b, HtmlT f ()) Source #

simpleReformPOST :: (Show b, Applicative f) => Text -> Form ActionM Text err (HtmlT f ()) b -> ActionM (Result err b, HtmlT f ()) Source #

Orphan instances

FormError Text Source # 
Instance details

Associated Types

type ErrorInputType Text :: Type #