summaryrefslogtreecommitdiff
path: root/demo/sum.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-28 10:35:25 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-28 10:35:25 -0400
commitf4799004f028094c775c824409bac4e3590b2421 (patch)
treebc9e633b76c75ea47d6cfdb826c549ed7cd4c66a /demo/sum.ur
parent072ba13540fd884e01c8d2aab31853594825e000 (diff)
Demo compiles with pattern-matching-fu
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 d967454c..483cbf0a 100644
--- a/demo/sum.ur
+++ b/demo/sum.ur
@@ -1,6 +1,6 @@
-fun sum (fs ::: {Unit}) (fl : folder fs) (x : $(mapU int fs)) =
+fun sum [fs ::: {Unit}] (fl : folder fs) (x : $(mapU int fs)) =
foldUR [int] [fn _ => int]
- (fn (nm :: Name) (rest :: {Unit}) [[nm] ~ rest] n acc => n + acc)
+ (fn [nm :: Name] [rest :: {Unit}] [[nm] ~ rest] n acc => n + acc)
0 [fs] fl x
fun main () = return <xml><body>