summaryrefslogtreecommitdiff
path: root/tests/rpcList2.ur
blob: e3ebb456688808d31561b2191c9dded0a41b0a8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fun showList l = case l of
    [] => "[]"
  | h :: t => strcat (strcat (show h) " :: ") (showList t)

fun rpcFunc l : transaction string =
  case l of h :: _ => return (showList h) | [] => return "[]"

fun main () : transaction page = return <xml><body>
  <button onclick={
    s <- rpc (rpcFunc  (("foo" :: []) :: []));
    alert s
  }/>
  </body></xml>