Closed ysangkok closed 8 years ago
Looks like a typo, setRadioActive
have only one argument:
setRadioActive
:: (Typeable a, Eq a, Show a)
=> a -> Widget (Radio a)
I think the extra argument is there cause this definition from hplayground was used which is similar to this definition from MFlow.
Thanks for the correction!
Yes this is because, in the latest version of GHCJS.HPlay I supressed the lambda expression coming from hplayground and MFlow, and I use a state variable to carry out the identifier of the radio buttons.
In the last example on input elements, this line occurs:
r <- getRadio [fromStr v ++> setRadioActive v n | v <- ["red","green","blue"]]
But n is not defined anywhere...