summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-07-03 16:26:28 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-07-03 16:26:28 -0400
commita4a7692d226262376d2cea2480033227f885cd7e (patch)
treeb3ffa7341fa823b37569845c5890dd24700fae69 /lib
parentb2eb9f45b9b14e5c7f53d0ad7ca8e84aa7858b59 (diff)
Basic XML stuff
Diffstat (limited to 'lib')
-rw-r--r--lib/basis.lig19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/basis.lig b/lib/basis.lig
index 83aa9dc6..65dd7000 100644
--- a/lib/basis.lig
+++ b/lib/basis.lig
@@ -1,3 +1,22 @@
type int
type float
type string
+
+
+con tag :: {Unit} -> {Unit} -> Type
+
+
+con xml :: {Unit} -> Type
+val cdata : ctx ::: {Unit} -> string -> xml ctx
+val tag : outer ::: {Unit} -> inner ::: {Unit}
+ -> tag outer inner
+ -> xml inner
+ -> xml outer
+val join : shared :: {Unit}
+ -> ctx1 ::: {Unit} -> ctx1 ~ shared
+ -> ctx2 ::: {Unit} -> ctx2 ~ shared
+ -> xml (shared ++ ctx1) -> xml (shared ++ ctx2) -> xml shared
+
+
+val head : tag [Html] [Head]
+val title : tag [Head] []