Mercurial > urweb
view demo/listShop.ur @ 400:e756d3a47726
Fix a nasty driver bug, involving memory restarts and marked-up request strings
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 21 Oct 2008 13:54:48 -0400 |
parents | ab3177746c78 |
children | 8084fa9216de |
line wrap: on
line source
structure I = struct type t = int val toString = show _ val fromString = read _ end structure S = struct type t = string val toString = show _ val fromString = read _ end structure IL = ListFun.Make(I) structure SL = ListFun.Make(S) fun main () = return <xml><body> Pick your poison:<br/> <li> <a link={IL.main ()}>Integers</a></li> <li> <a link={SL.main ()}>Strings</a></li> </body></xml>