view tests/onerrorJs.ur @ 1844:2c5e6f78560c

Manual: Reveal JavaScript representation of transaction type family
author Adam Chlipala <adam@chlipala.net>
date Tue, 12 Mar 2013 16:21:20 -0400
parents 27e731a65934
children
line wrap: on
line source
fun main n =
  case n of
      0 => error <xml>Zero is bad! <button value="Capische?" onclick={alert "GOOD!"}/></xml>
    | _ => return <xml/>