summaryrefslogtreecommitdiff
path: root/demo/ref.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-16 15:29:39 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-16 15:29:39 -0400
commit431abe6b2d53ed42d5019a5263e8014de8920eb4 (patch)
treefa0fcff27c8418c9e6beccbce3c846678e71f07e /demo/ref.ur
parent03deca916331e44c37a0ba46d4bbae6a12b54385 (diff)
Effectness analysis
Diffstat (limited to 'demo/ref.ur')
-rw-r--r--demo/ref.ur6
1 files changed, 5 insertions, 1 deletions
diff --git a/demo/ref.ur b/demo/ref.ur
index 983cc814..b21d40a2 100644
--- a/demo/ref.ur
+++ b/demo/ref.ur
@@ -6,7 +6,7 @@ structure SR = RefFun.Make(struct
type data = string
end)
-fun main () =
+fun mutate () =
ir <- IR.new 3;
ir' <- IR.new 7;
sr <- SR.new "hi";
@@ -24,3 +24,7 @@ fun main () =
return <xml><body>
{[iv]}, {[iv']}, {[sv]}
</body></xml>
+
+fun main () = return <xml><body>
+ <form><submit action={mutate} value="Do some pointless stuff"/></form>
+</body></xml>