annotate demo/more/dlist.urs @ 951:103ac1792c41

Make filter argument to render, not create
author Adam Chlipala <adamc@hcoop.net>
date Thu, 17 Sep 2009 14:27:00 -0400
parents da3ec6014d2f
children 07569af40069
rev   line source
adamc@915 1 con dlist :: Type -> Type
adamc@915 2 type position
adamc@915 3
adamc@951 4 val create : t ::: Type -> transaction (dlist t)
adamc@915 5 val clear : t ::: Type -> dlist t -> transaction unit
adamc@915 6 val append : t ::: Type -> dlist t -> t -> transaction position
adamc@915 7 val delete : position -> transaction unit
adamc@915 8 val elements : t ::: Type -> dlist t -> signal (list t)
adamc@937 9 val foldl : t ::: Type -> acc ::: Type -> (t -> acc -> signal acc) -> acc -> dlist t -> signal acc
adamc@915 10
adamc@915 11 val render : ctx ::: {Unit} -> [ctx ~ body] => t ::: Type
adamc@915 12 -> (t -> position -> xml (ctx ++ body) [] [])
adamc@951 13 -> {Filter : t -> signal bool}
adamc@915 14 -> dlist t
adamc@915 15 -> xml (ctx ++ body) [] []