descriptive-0.9.5: Self-describing consumers/parsers; forms, cmd-line args, JSON, etc.
Safe HaskellSafe
LanguageHaskell98

Descriptive.Formlet

Description

Validating indexed formlet with auto-generated input names.

Synopsis

Combinators

indexed :: Monad m => Consumer FormletState Formlet m Text Source #

Consume any character.

data FormletState Source #

State used when running a formlet.

Constructors

FormletState 

Fields

Instances

Instances details
Eq FormletState Source # 
Instance details

Defined in Descriptive.Formlet

Methods

(==) :: FormletState -> FormletState -> Bool

(/=) :: FormletState -> FormletState -> Bool

Show FormletState Source # 
Instance details

Defined in Descriptive.Formlet

Methods

showsPrec :: Int -> FormletState -> ShowS

show :: FormletState -> String

showList :: [FormletState] -> ShowS

Description

data Formlet Source #

Description of a formlet.

Constructors

Index !Integer 
Constrained !Text 

Instances

Instances details
Eq Formlet Source # 
Instance details

Defined in Descriptive.Formlet

Methods

(==) :: Formlet -> Formlet -> Bool

(/=) :: Formlet -> Formlet -> Bool

Show Formlet Source # 
Instance details

Defined in Descriptive.Formlet

Methods

showsPrec :: Int -> Formlet -> ShowS

show :: Formlet -> String

showList :: [Formlet] -> ShowS