summaryrefslogtreecommitdiff
path: root/demo/listShop.ur
blob: 0438634959582a8ecba0d7273c160ef7dbf5cd03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
structure I = struct
    type t = int
end

structure S = struct
    type t = string
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>