diff tests/datatypeMod.ur @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents tests/datatypeMod.lac@80192edca30d
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/datatypeMod.ur	Sun Aug 31 08:32:18 2008 -0400
@@ -0,0 +1,28 @@
+structure M : sig datatype t = A | B end = struct
+        datatype t = A | B
+end
+
+val ac = M.A
+
+datatype u = datatype M.t
+
+val ac : M.t = A
+val a2 : u = ac
+
+structure M2 = M
+structure M3 : sig datatype t = datatype M.t end = M2
+structure M4 : sig datatype t = datatype M.t end = M
+
+val bc : M3.t = M4.B
+
+structure Ma : sig type t end = M
+
+structure Magain : sig datatype t = A | B end = M
+
+val page : M.t -> page = fn x => <html><body>
+        Hi.
+</body></html>
+
+val main : unit -> page = fn () => <html><body>
+        <a link={page a2}>Link</a>
+</body></html>