descriptive-0.0.0: Self-describing consumers/parsers; forms, cmd-line args, JSON, etc.

Safe HaskellSafe-Inferred
LanguageHaskell98

Descriptive.Form

Description

Validating form with named inputs.

Synopsis

Documentation

data Form Source

Form descriptor.

Constructors

Input !Text 
Constraint !Text 

Instances

input :: Text -> Consumer (Map Text Text) Form Text Source

Consume any character.

validate :: Text -> (a -> Maybe b) -> Consumer (Map Text Text) Form a -> Consumer (Map Text Text) Form b Source

Validate a form input with a description of what's required.