view demo/more/dlist.urs @ 934:36f787c02287

Fix a bug in Jscomp environment calculation for EQuery; smarter embedding of record projection in JavaScript
author Adam Chlipala <adamc@hcoop.net>
date Mon, 14 Sep 2009 19:04:38 -0400
parents 5e8b6fa5b48f
children 37dd42935dad
line wrap: on
line source
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) [] []