Mercurial > urweb
annotate tests/ctuple.ur @ 1431:4a6f84092399
Represent 'unit' as C 'int'; change pattern match compilation to avoid 'goto'; change Postgres prepared statement compilation to make life easier for the GCC escape analysis; all this in support of better tail call optimization
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 10 Mar 2011 18:51:15 -0500 |
parents | 71bafe66dbe1 |
children |
rev | line source |
---|---|
adamc@215 | 1 val page = fn p :: (Type * Type) => fn f : p.1 -> string => fn x : p.1 => <html><body> |
adamc@215 | 2 {cdata (f x)} |
adamc@215 | 3 </body></html> |
adamc@215 | 4 |
adamc@215 | 5 val page_string = page [(string, int)] (fn x => x) |
adamc@215 | 6 |
adamc@215 | 7 val main : unit -> page = fn () => <html><body> |
adamc@215 | 8 <a link={page_string "Hi"}>Hi</a> |
adamc@215 | 9 </body></html> |