by pka on 3/29/20, 12:25 PM with 13 comments
by dmitriid on 3/30/20, 2:26 PM
hello = do
button [onClick] [text "Say Hello"]
text "Hello Sailor!"
into this: inputWidget = input [(Changed <<< unsafeTargetValue) <$> onChange, Focused <$ onFocus]
or this: inputWidget st = input [st {focusCount = st.focusCount+1} <$ onFocus
, ((\s -> st {currentText = s}) <<< unsafeTargetValue) <$> onChange]
for even the slightest modifications (which are not even complex in this case) These instances, allow a natural handling of
return values using <$>, <*>, <$, monadic
do-notation, etc
Right...[1] https://github.com/ajnsit/concur-documentation/blob/master/R...
by ivanbakel on 3/30/20, 2:26 PM