summaryrefslogtreecommitdiff
path: root/lib/ur/basis.urs
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
commit0264695e9a76f87e6164c489c34af63fa893889d (patch)
treecfce730aeca8d6832d9ec09d1e4d3450f85a444d /lib/ur/basis.urs
parent243ec1bee9539195d85bfa8928c84ead412f2413 (diff)
Subforms
Diffstat (limited to 'lib/ur/basis.urs')
-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] =>