From 70da89d392d5c9649157e53944db9a49d2149da3 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 1 Nov 2009 14:26:20 -0500 Subject: Initial form for paper assignment --- demo/more/expandable.urs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 demo/more/expandable.urs (limited to 'demo/more/expandable.urs') diff --git a/demo/more/expandable.urs b/demo/more/expandable.urs new file mode 100644 index 00000000..820b89b7 --- /dev/null +++ b/demo/more/expandable.urs @@ -0,0 +1,6 @@ +con t :: {Unit} -> Type + +val create : ctx ::: {Unit} -> xml ctx [] [] -> transaction (t ctx) +val render : ctx ::: {Unit} -> [[Body] ~ ctx] => t ([Body] ++ ctx) -> xml ([Body] ++ ctx) [] [] +val expand : ctx ::: {Unit} -> t ctx -> transaction unit +val collapse : ctx ::: {Unit} -> t ctx -> transaction unit -- cgit v1.2.3