view tests/whiteout.ur @ 1425:139d019c7237

Syntactic sugar for grouping by variable numbers of columns
author Adam Chlipala <adam@chlipala.net>
date Thu, 17 Feb 2011 18:05:08 -0500
parents f0224c7f12bb
children
line wrap: on
line source
table t : { Chan : option (channel unit) }

fun main () : transaction page =
    ch <- channel;
    dml (INSERT INTO t (Chan) VALUES ({[Some ch]}));
    return <xml><body>Did it.</body></xml>