view tests/unurlify.ur @ 399:2d64457eedb1

listFun uses length
author Adam Chlipala <adamc@hcoop.net>
date Tue, 21 Oct 2008 13:41:03 -0400
parents ab3177746c78
children ebf27030ae3b
line wrap: on
line source
datatype list t = Nil | Cons of t * list t

fun handler (ls : list bool) = return <xml/>

fun main () : transaction page = return <xml><body>
  <a link={handler Nil}>!</a>
</body></xml>