blob: be35d505b1a664681ca37a0fafcf432c1a91e6a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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>
|