annotate demo/listShop.ur @ 2174:ce312cad5ecd

Use correct OpenSSL thread safety macros on OS X (closes #209) Create an Autoconf test to determine if pthread_t is a pointer or scalar type, and use the appropriate CRYPTO_THREADID_set macro based on the result.
author Benjamin Barenblat <bbaren at mit.edu>
date Sun, 20 Sep 2015 17:46:07 -0400
parents 8084fa9216de
children
rev   line source
adamc@397 1 structure I = struct
adamc@397 2 type t = int
adamc@403 3 val toString = show
adamc@403 4 val fromString = read
adamc@397 5 end
adamc@397 6
adamc@397 7 structure S = struct
adamc@397 8 type t = string
adamc@403 9 val toString = show
adamc@403 10 val fromString = read
adamc@397 11 end
adamc@397 12
adamc@397 13 structure IL = ListFun.Make(I)
adamc@397 14 structure SL = ListFun.Make(S)
adamc@397 15
adamc@397 16 fun main () = return <xml><body>
adamc@397 17 Pick your poison:<br/>
adamc@397 18 <li> <a link={IL.main ()}>Integers</a></li>
adamc@397 19 <li> <a link={SL.main ()}>Strings</a></li>
adamc@397 20 </body></xml>