view tests/whiteout.ur @ 1707:c05e2e4bdde7

Refactor to avoid dependence on recursive mutexes
author Adam Chlipala <adam@chlipala.net>
date Sun, 08 Apr 2012 16:24:16 -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>