summaryrefslogtreecommitdiff
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
commit8f032c5cdc1e1efbed9782c37feca90bf9e20ca3 (patch)
treeecc04e66934cf2a473b64db35c53847eff7c6f24 /demo/more/dlist.urs
parentb1f297cea35d2fa47aa8193d3d90ddf8eb98afaa (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) [] []