summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-12 14:19:15 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-12 14:19:15 -0400
commit18614e3602ef4b45deaef419bb6716d1af4c9881 (patch)
tree09447cbf30adcc3cc79bc4ebe766f74d8a60a4a9 /lib
parent4cefbfc84784d48531587e1b2687348d6f6b3700 (diff)
Classes as optional arguments to Basis.tag
Diffstat (limited to 'lib')
-rw-r--r--lib/ur/basis.urs7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ur/basis.urs b/lib/ur/basis.urs
index 9eeb4891..50146dde 100644
--- a/lib/ur/basis.urs
+++ b/lib/ur/basis.urs
@@ -405,12 +405,10 @@ val nextval : sql_sequence -> transaction int
(** XML *)
-con css_class :: {Unit} -> Type
-(* The argument lists categories of properties that this class could set usefully. *)
+type css_class
con tag :: {Type} -> {Unit} -> {Unit} -> {Type} -> {Type} -> Type
-
con xml :: {Unit} -> {Type} -> {Type} -> Type
val cdata : ctx ::: {Unit} -> use ::: {Type} -> string -> xml ctx use []
val tag : attrsGiven ::: {Type} -> attrsAbsent ::: {Type}
@@ -420,7 +418,8 @@ val tag : attrsGiven ::: {Type} -> attrsAbsent ::: {Type}
-> [attrsGiven ~ attrsAbsent] =>
[useOuter ~ useInner] =>
[bindOuter ~ bindInner] =>
- $attrsGiven
+ option css_class
+ -> $attrsGiven
-> tag (attrsGiven ++ attrsAbsent)
ctxOuter ctxInner useOuter bindOuter
-> xml ctxInner useInner bindInner