view tests/aborter2.ur @ 1842:052c5eedc9ea

Add MLTONARGS to xml/parse
author Jason Gross <jgross@mit.edu>
date Sat, 05 Jan 2013 18:19:20 -0500
parents 7009b0ac1501
children
line wrap: on
line source
table t : { X : int }

fun main () : transaction page =
    v <- query (SELECT * FROM t)
         (fn r (_ : int) => return (error <xml>Shot down!</xml>))
         0;
    return <xml>Result: {[v]}</xml>