summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-28 17:26:53 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-28 17:26:53 -0400
commit0f298a5396cf95f4e58988583f862a4b97444bec (patch)
treecfce730aeca8d6832d9ec09d1e4d3450f85a444d /lib
parent43bdca1c4bef142cde7080f317a4686b01721359 (diff)
Subforms
Diffstat (limited to 'lib')
-rw-r--r--lib/ur/basis.urs13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/ur/basis.urs b/lib/ur/basis.urs
index ec31e57f..1881bec3 100644
--- a/lib/ur/basis.urs
+++ b/lib/ur/basis.urs
@@ -555,9 +555,16 @@ val a : bodyTag [Link = transaction page, Href = url, Onclick = transaction unit
val img : bodyTag [Src = url]
val form : ctx ::: {Unit} -> bind ::: {Type}
- -> [[Body] ~ ctx] =>
- xml form [] bind
- -> xml ([Body] ++ ctx) [] []
+ -> [[Body] ~ ctx] =>
+ xml form [] bind
+ -> xml ([Body] ++ ctx) [] []
+
+val subform : ctx ::: {Unit} -> use ::: {Type} -> bind ::: {Type}
+ -> [[Form] ~ ctx] =>
+ nm :: Name -> [[nm] ~ use] =>
+ xml form [] bind
+ -> xml ([Form] ++ ctx) use [nm = $bind]
+
con formTag = fn (ty :: Type) (inner :: {Unit}) (attrs :: {Type}) =>
ctx ::: {Unit}
-> [[Form] ~ ctx] =>