summaryrefslogtreecommitdiff
path: root/tests/datatype.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/datatype.ur
parent508290e29047e068b9db4b02485fefd9e3ced81c (diff)
Laconic -> Ur
Diffstat (limited to 'tests/datatype.ur')
-rw-r--r--tests/datatype.ur13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/datatype.ur b/tests/datatype.ur
new file mode 100644
index 00000000..1e1a91aa
--- /dev/null
+++ b/tests/datatype.ur
@@ -0,0 +1,13 @@
+datatype t = A | B
+
+val a = A
+val b = B
+
+datatype foo = C of t
+
+val c = C a
+
+datatype list = Nil | Cons of {Head : int, Tail : list}
+
+val nil = Nil
+val l1 = Cons {Head = 0, Tail = nil}