Mercurial > urweb
view tests/rpcNested.ur @ 1566:7328dfeb7c0f
Tweaked Emacs mode to handle many "->" faster.
author | Vladimir Shabanov <vshabanoff@gmail.com> |
---|---|
date | Mon, 26 Sep 2011 03:29:09 +0400 |
parents | 133c71008bef |
children |
line wrap: on
line source
datatype node = Node of { Label : string , SubForest : list node } fun getNode () : transaction node = return (Node { Label = "foo", SubForest = [] }) fun main () : transaction page = return <xml><body> <button onclick={ n <- rpc (getNode ()); case n of Node {Label = l, ...} => alert ("l = " ^ l) }/> </body></xml>