Mercurial > urweb
diff tests/option.ur @ 284:77a28e7430bf
intToString
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 07 Sep 2008 10:13:02 -0400 |
parents | 71bafe66dbe1 |
children |
line wrap: on
line diff
--- a/tests/option.ur Sun Sep 07 10:02:27 2008 -0400 +++ b/tests/option.ur Sun Sep 07 10:13:02 2008 -0400 @@ -9,15 +9,15 @@ val show2 = fn x => case x of None => "None'" | Some x => show x -val page = fn x => <html><body> +val page = fn x => return <html><body> {cdata (show x)} </body></html> -val page2 = fn x => <html><body> +val page2 = fn x => return <html><body> {cdata (show2 x)} </body></html> -val main : unit -> page = fn () => <html><body> +val main : unit -> transaction page = fn () => return <html><body> <li><a link={page none_Hi}>None1</a></li> <li><a link={page some_Hi}>Some1</a></li> <li><a link={page2 none_some_Hi}>None2</a></li>