view tests/whiteout.ur @ 1870:434921f54f54

Add monoize case for 'dml' type
author Adam Chlipala <adam@chlipala.net>
date Tue, 01 Oct 2013 07:33:20 -0400
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>