diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-11-01 14:26:20 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-11-01 14:26:20 -0500 |
commit | 70da89d392d5c9649157e53944db9a49d2149da3 (patch) | |
tree | 554465c7355d6fe0d310a16f4a7fa5a4e0675870 /demo/more/expandable.urs | |
parent | 7aaaa9a22a7eede386cda3cfbb3fc906619415d9 (diff) |
Initial form for paper assignment
Diffstat (limited to 'demo/more/expandable.urs')
-rw-r--r-- | demo/more/expandable.urs | 6 |
1 files changed, 6 insertions, 0 deletions
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 |