AutoForms-0.5.0: GUI library based upon generic programming (SYB3)ContentsIndex
Graphics.UI.AF.General.PriLabel
Synopsis
data PriLabel = PriLabel {
priority :: Priority
labelString :: String
}
data Priority
= BadConstr
| GoodConstr
| FieldName
| UserDefined
badConstrLabel :: String -> PriLabel
goodConstrLabel :: String -> PriLabel
fieldNameLabel :: String -> PriLabel
userDefinedLabel :: String -> PriLabel
bestLabel :: PriLabel -> PriLabel -> PriLabel
humanizeLabel :: PriLabel -> PriLabel
defaultLabel :: String -> PriLabel
labelless :: PriLabel
Documentation
data PriLabel
Prioritized label. If two PriLabel can be used for some component, then the one with highest priority is used.
Constructors
PriLabel
priority :: Priority
labelString :: String
show/hide Instances
Show PriLabel
Labeled PriLabel
data Priority
The label priority.
Constructors
BadConstr
GoodConstr
FieldName
UserDefined
show/hide Instances
badConstrLabel :: String -> PriLabel
goodConstrLabel :: String -> PriLabel
fieldNameLabel :: String -> PriLabel
userDefinedLabel :: String -> PriLabel
bestLabel :: PriLabel -> PriLabel -> PriLabel
Choose label with highest priority. If equal then choose the left |(first parameter) label.
humanizeLabel :: PriLabel -> PriLabel
Humanized label strings, by turning labels like someLabelName into Some label name.
defaultLabel :: String -> PriLabel
Creates a default (lowest priority) PriLabel
labelless :: PriLabel
Produced by Haddock version 2.0.0.0