Mercurial > urweb
comparison demo/metaform.ur @ 1303:c7b9a33c26c8
Hopeful fix for the Great Unification Bug
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 10 Oct 2010 14:41:03 -0400 |
parents | d008c4c43a0a |
children |
comparison
equal
deleted
inserted
replaced
1302:d008c4c43a0a | 1303:c7b9a33c26c8 |
---|---|
13 </body></xml> | 13 </body></xml> |
14 | 14 |
15 fun main () = return <xml><body> | 15 fun main () = return <xml><body> |
16 <form> | 16 <form> |
17 {@foldUR [string] [fn cols => xml form [] (mapU string cols)] | 17 {@foldUR [string] [fn cols => xml form [] (mapU string cols)] |
18 (fn [nm :: Name] [rest ::_] [[nm] ~ rest] name | 18 (fn [nm :: Name] [rest ::_] [[nm] ~ rest] name acc => <xml> |
19 (acc : xml form [] (mapU string rest)) => <xml> | 19 <li> {[name]}: <textbox{nm}/></li> |
20 <li> {[name]}: <textbox{nm}/></li> | 20 {useMore acc} |
21 {useMore acc} | 21 </xml>) |
22 </xml>) | |
23 <xml/> | 22 <xml/> |
24 M.fl M.names} | 23 M.fl M.names} |
25 <submit action={handler}/> | 24 <submit action={handler}/> |
26 </form> | 25 </form> |
27 </body></xml> | 26 </body></xml> |