summaryrefslogtreecommitdiff
path: root/tests/recReal3.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 08:32:18 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 08:32:18 -0400
commit447b60afccc89ef18d8f92a260dd1fcdf735898e (patch)
tree93d1ffca9832084286525896afc4c17eaf5d23f4 /tests/recReal3.ur
parent508290e29047e068b9db4b02485fefd9e3ced81c (diff)
Laconic -> Ur
Diffstat (limited to 'tests/recReal3.ur')
-rw-r--r--tests/recReal3.ur18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/recReal3.ur b/tests/recReal3.ur
new file mode 100644
index 00000000..0ebc489a
--- /dev/null
+++ b/tests/recReal3.ur
@@ -0,0 +1,18 @@
+val rec endlessList1 = fn () => <body>
+ <li> Buy eggs.</li>
+ {endlessList2 ()}
+</body>
+
+and endlessList2 = fn () => <body>
+ <li> Buy milk.</li>
+ {endlessList1 ()}
+ {endlessList3 ()}
+</body>
+
+and endlessList3 = fn () => <body>
+ <li> Buy goat.</li>
+</body>
+
+val main = fn () => <html><body>
+ {endlessList1 ()}
+</body></html>