maybe editors remove labels and are unclear
Some issues with maybes:
- For strings, numbers, etc, an empty field signifies
?None
but what if I want to enter an empty string/number/...? - For some types it is impossible to enter or go back to a
?None
. For example with booleans, because there is one checkbox whether it is?None
or?Just
and the basic editor does not contain an empty state that number and text editors do have.
module test
import iTasks
import Debug.Trace
Start w = doTasks (t >>? viewInformation []) w
:: R = { char :: Char, maybeInt :: ?Int, bool :: ?Bool }
derive class iTask R
t :: Task R
t = updateInformation [] {char = 'a', maybeInt = ?Just 42, bool = ?Just False}