If a form contains a sum type as a field, then we should expect the following behaviour, possibly triggered by wrapping in a newtype:
There should be a drop down select with an option for every constructor. If the constructor takes arguments, this should be treated as a sub form that appears only if that constructor has been selected in the drop down.
You may assume that jQuery has been loaded and you should use hide/show to trigger the visibility of various sub forms
If a form contains a sum type as a field, then we should expect the following behaviour, possibly triggered by wrapping in a newtype:
There should be a drop down select with an option for every constructor. If the constructor takes arguments, this should be treated as a sub form that appears only if that constructor has been selected in the drop down.
You may assume that jQuery has been loaded and you should use hide/show to trigger the visibility of various sub forms