diff tests/datatypeMod.lac @ 163:80192edca30d

Datatypes through corify
author Adam Chlipala <adamc@hcoop.net>
date Tue, 29 Jul 2008 13:16:21 -0400
parents 870e8abbe3b9
children
line wrap: on
line diff
--- a/tests/datatypeMod.lac	Tue Jul 29 12:30:04 2008 -0400
+++ b/tests/datatypeMod.lac	Tue Jul 29 13:16:21 2008 -0400
@@ -2,19 +2,27 @@
         datatype t = A | B
 end
 
-val a = M.A
+val ac = M.A
 
 datatype u = datatype M.t
 
-val a : M.t = A
-val a2 : u = a
+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 b : M3.t = M4.B
+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>