view tests/transact.ur @ 1837:7cf34f8b7b93

Add ./configure MLTONARGS option for MLTON arguments Named MLTONARGS based on CCARGS.
author Jason Gross <jgross@mit.edu>
date Wed, 12 Dec 2012 14:47:06 -0500
parents 1cc67fdac4d3
children
line wrap: on
line source
fun listHell n =
    if n <= 0 then
        []
    else
        n :: List.append (listHell (n-1)) (listHell (n-1))

fun doit r =
    Transactional.foo;
    return <xml>{[listHell (readError r.N)]}</xml>

fun main () = return <xml><body>
  <form> <textbox{#N}/> <submit action={doit}/> </form>
</body></xml>