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 | 2ace64baba707b2e76778c74789735263eb50823 (patch) | |
tree | b4c6e798738335ded8d209afc369885664396d08 /demo/tcSum.ur | |
parent | 7aa1234891f8831449a573ec067348c89c22692f (diff) |
Make summary unification more conservative; infer implicit arguments after applications
Diffstat (limited to 'demo/tcSum.ur')
-rw-r--r-- | demo/tcSum.ur | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demo/tcSum.ur b/demo/tcSum.ur index 57e61c38..0026d506 100644 --- a/demo/tcSum.ur +++ b/demo/tcSum.ur @@ -1,7 +1,7 @@ fun sum [t] (_ : num t) [fs ::: {Unit}] (fl : folder fs) (x : $(mapU t fs)) = - foldUR [t] [fn _ => t] - (fn [nm :: Name] [rest :: {Unit}] [[nm] ~ rest] n acc => n + acc) - zero [fs] fl x + @foldUR [t] [fn _ => t] + (fn [nm :: Name] [rest :: {Unit}] [[nm] ~ rest] n acc => n + acc) + zero fl x fun main () = return <xml><body> {[sum {A = 0, B = 1}]}<br/> |