Mercurial > urweb
annotate tests/ctuple.lac @ 226:b0041cc7e5f7
Basic GROUP BY
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 21 Aug 2008 13:59:49 -0400 |
parents | 2f574c07df2e |
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> |