Mercurial > urweb
diff tests/stypes.ur @ 586:1c969230ee7f
Reactive bool
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 01 Jan 2009 11:13:08 -0500 |
parents | 35471f067980 |
children | 4c899701bd28 |
line wrap: on
line diff
--- a/tests/stypes.ur Thu Jan 01 11:04:09 2009 -0500 +++ b/tests/stypes.ur Thu Jan 01 11:13:08 2009 -0500 @@ -4,6 +4,7 @@ sBoth <- source (7, 42.1); sOpt <- source None; + sBool <- source True; return <xml><body> <dyn signal={n <- signal sInt; return <xml>{[n + 3]}</xml>}/> <a onclick={set sInt 1}>Change</a><br/> @@ -20,4 +21,6 @@ None => return <xml>None</xml> | Some n => return <xml>{[n]}</xml>}/> <a onclick={set sOpt (Some 7)}>Change</a><br/> + + <dyn signal={b <- signal sBool; return <xml>{[b]}</xml>}/> <a onclick={set sBool False}>Change</a><br/> </body></xml>