diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 17:09:53 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 17:09:53 -0500 |
commit | 98d669cf07157e275fa796fdd5ad35f3388b0ad1 (patch) | |
tree | 16401277a8c24a1bcfcc410700526f64ba27a5b8 /demo/tree.ur | |
parent | 5b41c32b3fb60944fd5d342f7f6ee4413510b9f5 (diff) |
About to begin optimization of recursive transaction functions
Diffstat (limited to 'demo/tree.ur')
-rw-r--r-- | demo/tree.ur | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/demo/tree.ur b/demo/tree.ur new file mode 100644 index 00000000..06a30cf9 --- /dev/null +++ b/demo/tree.ur @@ -0,0 +1,15 @@ +table t : { Id : int, Parent : option int, Nam : string } + +open TreeFun.Make(struct + val tab = t + end) + +fun row r = <xml> + #{[r.Id]}: {[r.Nam]} +</xml> + +fun main () = + xml <- tree row None; + return <xml><body> + {xml} + </body></xml> |