Mercurial > urweb
comparison demo/metaform.ur @ 1176:51e596feec37
Tone down Reduce and compensate with a new push-lambda-inside-case rule in MonoOpt; expand more Basis synonyms in Monoize
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 02 Mar 2010 16:00:48 -0500 |
parents | 8d3aa6c7cee0 |
children | d008c4c43a0a |
comparison
equal
deleted
inserted
replaced
1175:79f487f51d9f | 1176:51e596feec37 |
---|---|
3 val fl : folder fs | 3 val fl : folder fs |
4 val names : $(mapU string fs) | 4 val names : $(mapU string fs) |
5 end) = struct | 5 end) = struct |
6 | 6 |
7 fun handler values = return <xml><body> | 7 fun handler values = return <xml><body> |
8 {@foldURX2 [string] [string] [body] | 8 {@mapUX2 [string] [string] [body] |
9 (fn [nm :: Name] [rest :: {Unit}] [[nm] ~ rest] name value => <xml> | 9 (fn [nm :: Name] [rest :: {Unit}] [[nm] ~ rest] name value => <xml> |
10 <li> {[name]} = {[value]}</li> | 10 <li> {[name]} = {[value]}</li> |
11 </xml>) | 11 </xml>) |
12 M.fl M.names values} | 12 M.fl M.names values} |
13 </body></xml> | 13 </body></xml> |