Mercurial > urweb
view tests/rpcList2.ur @ 1965:126d24ef6678
Turn off GCC's fancy %n checking, because the performance cost is too high
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 07 Feb 2014 18:34:17 -0500 |
parents | 553a5cc3a4b5 |
children |
line wrap: on
line source
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>