summaryrefslogtreecommitdiff
path: root/demo/more/meta.urs
diff options
context:
space:
mode:
Diffstat (limited to 'demo/more/meta.urs')
-rw-r--r--demo/more/meta.urs8
1 files changed, 8 insertions, 0 deletions
diff --git a/demo/more/meta.urs b/demo/more/meta.urs
index 0d3422af..cd3e183a 100644
--- a/demo/more/meta.urs
+++ b/demo/more/meta.urs
@@ -26,3 +26,11 @@ val allPopulatedTr : ts ::: {(Type * Type)} -> $(map meta ts) -> $(map fst ts) -
val ensql : avail ::: {{Type}} -> ts ::: {(Type * Type)} -> $(map meta ts) -> $(map snd ts) -> folder ts
-> $(map (sql_exp avail [] []) (map fst ts))
+
+con private = fn t :: Type =>
+ {Nam : string,
+ Initialize : t,
+ Show : t -> xbody,
+ Inject : sql_injectable t}
+
+val initialize : ts ::: {Type} -> $(map private ts) -> folder ts -> $(map (sql_exp [] [] []) ts)