Mercurial > urweb
view tests/dcol.ur @ 2126:ec1614fb97bb
Change MonoReduce to do fixed-pointing, since it sometimes enables more optimizations for itself (e.g., yanking lambdas out of [case]s)
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 06 Mar 2015 09:46:21 -0500 |
parents | 63114a2e5075 |
children |
line wrap: on
line source
fun main () = s <- source <xml><td>A</td><td>A'</td></xml>; return <xml><body> <button value="Click me!" onclick={set s <xml><td>B</td><td>B'</td></xml>}/><br/> <table><tr><td>Pre</td><td>Pre'</td></tr> <tr><td>Hehe</td><dyn signal={signal s}/><td>Hoho</td></tr> <tr><td>Post</td><td>Post</td><td>Post'</td></tr></table> </body></xml>