comparison tests/caseMod.lac @ 183:c0ea24dcb86f

Optimizing 'case' in Mono_reduce
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Aug 2008 13:30:27 -0400
parents 5d030ee143e2
children
comparison
equal deleted inserted replaced
182:d11754ffe252 183:c0ea24dcb86f
22 case x of 22 case x of
23 C A => "C A" 23 C A => "C A"
24 | C B => "C B" 24 | C B => "C B"
25 | D => "D" 25 | D => "D"
26 26
27 val page = fn x => <html><body> 27 val rec page = fn x => <html><body>
28 {cdata (toString x)} 28 {cdata (toString x)}<br/>
29 <br/>
30
31 <a link={page x}>Again!</a>
29 </body></html> 32 </body></html>
30 33
31 val main : unit -> page = fn () => <html><body> 34 val main : unit -> page = fn () => <html><body>
32 <li> <a link={page (C A)}>C A</a></li> 35 <li> <a link={page (C A)}>C A</a></li>
33 <li> <a link={page (C B)}>C B</a></li> 36 <li> <a link={page (C B)}>C B</a></li>