summaryrefslogtreecommitdiff
path: root/tests/tbody.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-06-13 14:29:36 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-06-13 14:29:36 -0400
commitafe50be2ed547e0b8d83200bbec77b6037334678 (patch)
tree1f400f83f20ef1f54d68e1e7b674a08f29abb4d4 /tests/tbody.ur
parentf6cfaea8a7eb777dae12337178c3b9a268459995 (diff)
<dyn> inside <table>; fix Specialize bug with datatype decls generating other mutually-recursive datatype decls
Diffstat (limited to 'tests/tbody.ur')
-rw-r--r--tests/tbody.ur13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/tbody.ur b/tests/tbody.ur
new file mode 100644
index 00000000..53bc0296
--- /dev/null
+++ b/tests/tbody.ur
@@ -0,0 +1,13 @@
+fun main () : transaction page =
+ s <- source [];
+ entry <- source "";
+ return <xml><body>
+ <table>
+ <dyn signal={s <- signal s;
+ return (List.mapX (fn s => <xml><tr><td>{[s]}</td></tr></xml>) s)}/>
+ </table>
+
+ Add one: <ctextbox source={entry}/> <button onclick={e <- get entry;
+ v <- get s;
+ set s (e :: v)}/>
+ </body></xml>