view tests/random.ur @ 1717:16ee7ff7f119

Avoid kindof failures in elaboration
author Adam Chlipala <adam@chlipala.net>
date Sat, 21 Apr 2012 13:57:10 -0400
parents ac141fbb313a
children
line wrap: on
line source
table t : { A : int }

fun main () : transaction page =
    x <- queryX (SELECT *
                 FROM t
                 ORDER BY RANDOM)
         (fn r => <xml>{[r.T.A]}<br/></xml>);
    return <xml><body>{x}</body></xml>