Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Validating form with named inputs.
Combinators
input :: Monad m => Text -> Consumer (Map Text Text) (Form d) m Text Source #
Consume any input value.
:: Monad m | |
=> d | Description of what it expects. |
-> (a -> StateT s m (Maybe b)) | Attempt to parse the value. |
-> Consumer s (Form d) m a | Consumer to add validation to. |
-> Consumer s (Form d) m b | A new validating consumer. |
Validate a form input with a description of what's required.
Description
Form descriptor.
Input !Text | |
Constraint !d |