diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-12-26 11:56:40 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-12-26 11:56:40 -0500 |
commit | c4120c8ddaa5340efad5f835ce4565f2a8ae2cbf (patch) | |
tree | b4c6e798738335ded8d209afc369885664396d08 /demo/sum.ur | |
parent | 4300120544123e9dfb262eb8b4e3d0a0f17ff9bc (diff) |
Make summary unification more conservative; infer implicit arguments after applications
Diffstat (limited to 'demo/sum.ur')
-rw-r--r-- | demo/sum.ur | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demo/sum.ur b/demo/sum.ur index 483cbf0a..c8d42887 100644 --- a/demo/sum.ur +++ b/demo/sum.ur @@ -1,7 +1,7 @@ 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) - 0 [fs] fl x + @foldUR [int] [fn _ => int] + (fn [nm :: Name] [rest :: {Unit}] [[nm] ~ rest] n acc => n + acc) + 0 fl x fun main () = return <xml><body> {[sum {}]}<br/> |