aboutsummaryrefslogtreecommitdiffhomepage
path: root/demo/more/dlist.urs
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-09-08 07:48:57 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-09-08 07:48:57 -0400
commit815c52605cdba3c95d7e4e6fd3f1eddf0939bc6a (patch)
treeecc04e66934cf2a473b64db35c53847eff7c6f24 /demo/more/dlist.urs
parent87777778aeaee3e1de767499f86bc22789118a69 (diff)
Start 'more' demo with dbgrid
Diffstat (limited to 'demo/more/dlist.urs')
-rw-r--r--demo/more/dlist.urs13
1 files changed, 13 insertions, 0 deletions
diff --git a/demo/more/dlist.urs b/demo/more/dlist.urs
new file mode 100644
index 00000000..872dabcd
--- /dev/null
+++ b/demo/more/dlist.urs
@@ -0,0 +1,13 @@
+con dlist :: Type -> Type
+type position
+
+val create : t ::: Type -> transaction (dlist t)
+val clear : t ::: Type -> dlist t -> transaction unit
+val append : t ::: Type -> dlist t -> t -> transaction position
+val delete : position -> transaction unit
+val elements : t ::: Type -> dlist t -> signal (list t)
+
+val render : ctx ::: {Unit} -> [ctx ~ body] => t ::: Type
+ -> (t -> position -> xml (ctx ++ body) [] [])
+ -> dlist t
+ -> xml (ctx ++ body) [] []