view tests/bool.lac @ 238:44a1663ad893

Checking for well-formed 'val rec'
author Adam Chlipala <adamc@hcoop.net>
date Thu, 28 Aug 2008 13:13:16 -0400
parents 88d46972de53
children
line wrap: on
line source
val page = fn b => <html><body>
        {cdata (case b of False => "No!" | True => "Yes!")}
</body></html>

val main : unit -> page = fn () => <html><body>
        <li><a link={page True}>True</a></li>
        <li><a link={page False}>False</a></li>
</body></html>