view tests/ctuple.ur @ 1455:913d9c2f55c9

Corify Basis.unit to empty record; this is needed so that specialize can see that they are equivalent.
author Karn Kallio <kkallio@eka>
date Fri, 06 May 2011 16:24:45 -0430
parents 71bafe66dbe1
children
line wrap: on
line source
val page = fn p :: (Type * Type) => fn f : p.1 -> string => fn x : p.1 => <html><body>
        {cdata (f x)}
</body></html>

val page_string = page [(string, int)] (fn x => x)

val main : unit -> page = fn () => <html><body>
        <a link={page_string "Hi"}>Hi</a>
</body></html>