Source codeContentsIndex
SimpleForm
data Form value
newFormEntry :: (FormLabel label, FormValue value) => label -> value -> Form value
newFormMenu :: (FormLabel label) => label -> HTkMenu value -> Form (Maybe value)
(//) :: Form value1 -> Form value2 -> Form (value1, value2)
doForm :: String -> Form value -> IO (Maybe value)
mapForm :: (x -> WithError y) -> Form x -> Form y
guardForm :: (x -> Bool) -> String -> Form x -> Form x
class FormValue value where
Methods
makeFormEntry :: Frame -> value -> IO (EnteredForm value)
Instances
(FormTextField value) => FormValue value
(HasConfigRadioButton value, Bounded value, Enum value) => FormValue (Radio value)
FormValue Bool
class FormTextField value where
Methods
makeFormString :: value -> String
readFormString :: String -> WithError value
Instances
FormTextField String
(Num a, Show a, Read a) => FormTextField a
(FormTextField value) => FormTextField (Maybe value)
class FormLabel label where
Methods
formLabel :: Frame -> label -> IO (IO ())
Instances
FormLabel String
FormLabel Image
FormLabel WrappedFormLabel
FormLabel EmptyLabel
data EmptyLabel
Constructors
EmptyLabel
Instances
FormLabel EmptyLabel
data WrappedFormLabel
Constructors
forall label . (FormLabel label) => WrappedFormLabel label
Instances
FormLabel WrappedFormLabel
data Radio x
Constructors
Radio x
NoRadio
Instances
(HasConfigRadioButton value, Bounded value, Enum value) => FormValue (Radio value)
class HasConfigRadioButton value where
Methods
configRadioButton :: value -> Config (RadioButton Int)
Instances
(Show value) => HasConfigRadioButton value
Produced by Haddock version 0.3