view tests/rpcNested.ur @ 1866:9fc086e3c95a

Add hex SQL syntax for blobs, such as X'0ABC12343'. Works with sqlite.
author Sergey Mironov <grrwlf@gmail.com>
date Fri, 13 Sep 2013 10:09:15 -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>