Mercurial > urweb
diff tests/stypes.ur @ 582:66463006f893
Source containing an int
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 01 Jan 2009 10:08:22 -0500 |
parents | |
children | 1fd4c041634e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/stypes.ur Thu Jan 01 10:08:22 2009 -0500 @@ -0,0 +1,5 @@ +fun main () : transaction page = + sInt <- source 0; + return <xml><body> + <dyn signal={n <- signal sInt; return <xml>{[n]}</xml>}/> <a onclick={set sInt 1}>Change</a><br/> + </body></xml>