Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- reform :: (MonadIO m, Monoid view) => ([(Text, Text)] -> view -> view) -> Text -> Form (TrasaT m) Text err view a -> TrasaT m (Result err a, view)
- reformQP :: (MonadIO m, Monoid view) => ([(Text, Text)] -> view -> view) -> Text -> Form (TrasaT m) QueryParam err view a -> TrasaT m (Result err a, view)
- reformPost :: (MonadIO m, Monoid view) => ([(Text, Text)] -> view -> view) -> Text -> ByteString -> Form (TrasaT m) QueryParam err view a -> TrasaT m (Result err a, view)
- liftParser :: (Text -> Either Text a) -> QueryParam -> Either Text a
- type TrasaForm a = Form (TrasaT IO) QueryParam Text (Html ()) a
- type TrasaSimpleForm a = Form (TrasaT IO) Text Text (Html ()) a
- class FormError e where
- type ErrorInputType e :: Type
- commonFormError :: CommonFormError (ErrorInputType e) -> e
Documentation
liftParser :: (Text -> Either Text a) -> QueryParam -> Either Text a Source #
A Class to lift a CommonFormError
into an application-specific error type
type ErrorInputType e :: Type #
commonFormError :: CommonFormError (ErrorInputType e) -> e #
Instances
FormError Text Source # | |
Defined in Trasa.Form type ErrorInputType Text :: Type # |