summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/gform.lac8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/gform.lac b/tests/gform.lac
index f9b028fa..e1b194c0 100644
--- a/tests/gform.lac
+++ b/tests/gform.lac
@@ -15,7 +15,13 @@ functor F (M : S) : S' where con rs = M.rs = struct
con rs = M.rs
val handler = fn x : $(stringify M.rs) => <html><body>
- OK.
+ {fold [fn rs :: {Unit} => $(stringify rs) -> xml body [] []]
+ (fn nm :: Name => fn u :: Unit => fn rest :: {Unit} =>
+ fn f : $(stringify rest) -> xml body [] [] =>
+ fn x : $(stringify ([nm] ++ rest)) =>
+ <body><li> {cdata x.nm}</li> {f (x -- nm)}</body>)
+ (fn x => <body></body>)
+ [M.rs] x}
</body></html>
val page = fn () => <html><body>