FormDemo: whitespace

This commit is contained in:
Jonathan Daugherty 2017-12-26 20:22:42 -08:00
parent 6d8cbe1e6c
commit 4d027c7a43

View File

@ -32,12 +32,16 @@ makeLenses ''FormState
mkForm :: FormState -> Form FormState e Name
mkForm =
newForm [ ((hCenter $ str "Edit 1:") <=>) @@= editShowableField field1 Edit1
, (str "Edit 2: " <+>) @@= editShowableField field2 Edit2
, (str "Password: " <+>) @@= editPasswordField fieldPassword Password
, (str "Okay? " <+>) @@= radioField radio [ (True, YesRadio, "Yes")
, (False, NoRadio, "No")
]
newForm [ ((hCenter $ str "Edit 1:") <=>) @@=
editShowableField field1 Edit1
, (str "Edit 2: " <+>) @@=
editShowableField field2 Edit2
, (str "Password: " <+>) @@=
editPasswordField fieldPassword Password
, (str "Okay? " <+>) @@=
radioField radio [ (True, YesRadio, "Yes")
, (False, NoRadio, "No")
]
]
theMap :: AttrMap