view tests/ccheckbox.ur @ 1822:8bc16ff91d32

Edward Z. Yang's patch to avoid repeating linker arguments
author Adam Chlipala <adam@chlipala.net>
date Wed, 19 Sep 2012 14:20:47 -0400
parents 37f5a23446b2
children
line wrap: on
line source
fun main () : transaction page =
    s <- source True;
    t <- source 1;
    return <xml><body><ccheckbox source={s} onclick={set t 3}/>
      <dyn signal={s <- signal s;
                   t <- signal t;
                   return <xml>{[s]} {[t]}</xml>}/>
    </body></xml>