diff lib/ur/basis.urs @ 1004:a87495bcaeec

Start of user management
author Adam Chlipala <adamc@hcoop.net>
date Tue, 20 Oct 2009 12:48:53 -0400
parents 10114d7b7477
children 5a0f6ec208ce
line wrap: on
line diff
--- a/lib/ur/basis.urs	Tue Oct 20 11:05:58 2009 -0400
+++ b/lib/ur/basis.urs	Tue Oct 20 12:48:53 2009 -0400
@@ -594,25 +594,25 @@
                     Onload = transaction unit] ++ boxEvents)
           
 val form : ctx ::: {Unit} -> bind ::: {Type}
-           -> [[Body] ~ ctx] =>
-    xml form [] bind
+           -> [[Body, Form] ~ ctx] =>
+    xml ([Body, Form] ++ ctx) [] bind
     -> xml ([Body] ++ ctx) [] []
        
 val subform : ctx ::: {Unit} -> use ::: {Type} -> bind ::: {Type}
               -> [[Form] ~ ctx] =>
     nm :: Name -> [[nm] ~ use] =>
-    xml form [] bind
+    xml ([Form] ++ ctx) [] bind
     -> xml ([Form] ++ ctx) use [nm = $bind]
 
 val subforms : ctx ::: {Unit} -> use ::: {Type} -> bind ::: {Type}
-              -> [[Form] ~ ctx] =>
+              -> [[Form, Subform] ~ ctx] =>
     nm :: Name -> [[nm] ~ use] =>
-    xml subform [Entry = $bind] []
+    xml ([Subform] ++ ctx) [Entry = $bind] []
     -> xml ([Form] ++ ctx) use [nm = list ($bind)]
 
 val entry : ctx ::: {Unit} -> bind ::: {Type}
-              -> [[Subform] ~ ctx] =>
-    xml form [] bind
+              -> [[Subform, Form] ~ ctx] =>
+    xml ([Form] ++ ctx) [] bind
     -> xml ([Subform] ++ ctx) [Entry = $bind] []
 
 con formTag = fn (ty :: Type) (inner :: {Unit}) (attrs :: {Type}) =>