From e2170d73e8d43842996910a6b512df89e20be389 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 17 Sep 2009 14:27:00 -0400 Subject: Make filter argument to render, not create --- demo/more/dlist.urs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'demo/more/dlist.urs') diff --git a/demo/more/dlist.urs b/demo/more/dlist.urs index a55a1774..a775113e 100644 --- a/demo/more/dlist.urs +++ b/demo/more/dlist.urs @@ -1,7 +1,7 @@ con dlist :: Type -> Type type position -val create : t ::: Type -> {Filter : t -> signal bool} -> transaction (dlist t) +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 @@ -10,5 +10,6 @@ val foldl : t ::: Type -> acc ::: Type -> (t -> acc -> signal acc) -> acc -> dli val render : ctx ::: {Unit} -> [ctx ~ body] => t ::: Type -> (t -> position -> xml (ctx ++ body) [] []) + -> {Filter : t -> signal bool} -> dlist t -> xml (ctx ++ body) [] [] -- cgit v1.2.3