CurryInfo: wui2-3.1.0 / HTML.WUI.wRadioMaybe

definition:
wRadioMaybe :: Eq a => WuiSpec a -> [HtmlExp] -> [HtmlExp] -> a
                    -> WuiSpec (Maybe a)
wRadioMaybe wspec hnothing hjust = wMaybe wBool wspec
 where
  wBool = wRadioSelect (\b->if b then hjust else hnothing) [False,True]
demand:
no demanded arguments
deterministic:
possibly non-deterministic operation
documentation:
--- A WUI for Maybe values where radio buttons are used to switch
--- between Nothing and Just.
--- The value WUI is shown after the radio button WUI.
--- @param wspec - a WUI specification for the type of potential values
--- @param hexps - a list of HTML expressions shown after the Nothing button
--- @param hexps - a list of HTML expressions shown after the Just button
--- @param def - a default value if the current value is Nothing
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_,_,_) |-> {wMaybe}}
name:
wRadioMaybe
precedence:
no precedence defined
result-values:
{wMaybe}
signature:
Prelude.Eq a => WuiSpec a -> [HTML.Base.HtmlExp] -> [HTML.Base.HtmlExp] -> a
-> WuiSpec (Prelude.Maybe a)
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term