summaryrefslogtreecommitdiff
path: root/demo/sum.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-02-24 15:12:13 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-02-24 15:12:13 -0500
commit0351ba637e206cdf397c85e3cfe2cfcf52aa4c9d (patch)
tree163895f20f3556dd9ebb32a2deb09842eced212e /demo/sum.ur
parentff76ba5e41d9a10ec59b181bee87d3fe65d61fdc (diff)
Demos compile again, with manual folders
Diffstat (limited to 'demo/sum.ur')
-rw-r--r--demo/sum.ur4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/sum.ur b/demo/sum.ur
index 87b2967a..62954e20 100644
--- a/demo/sum.ur
+++ b/demo/sum.ur
@@ -1,7 +1,7 @@
-fun sum (fs ::: {Unit}) (fold : folder fs) (x : $(mapUT int fs)) =
+fun sum (fs ::: {Unit}) (fl : folder fs) (x : $(mapUT int fs)) =
foldUR [int] [fn _ => int]
(fn (nm :: Name) (rest :: {Unit}) [[nm] ~ rest] n acc => n + acc)
- 0 [fs] fold x
+ 0 [fs] fl x
fun main () = return <xml><body>
{[sum Folder.nil {}]}<br/>