Mercurial > urweb
diff demo/more/meta.ur @ 1030:6bcc1020d5cd
Start of Decision
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Mon, 02 Nov 2009 15:48:06 -0500 |
parents | 16f7cb0891b6 |
children |
line wrap: on
line diff
--- a/demo/more/meta.ur Mon Nov 02 14:22:29 2009 -0500 +++ b/demo/more/meta.ur Mon Nov 02 15:48:06 2009 -0500 @@ -80,3 +80,12 @@ map2 [meta] [snd] [fn ts :: (Type * Type) => sql_exp avail [] [] ts.1] (fn [ts] meta v => @sql_inject meta.Inject (meta.Parse v)) [_] fl r vs + +con private = fn t :: Type => + {Nam : string, + Initialize : t, + Show : t -> xbody, + Inject : sql_injectable t} + +fun initialize [ts] (r : $(map private ts)) (fl : folder ts) = + mp [private] [sql_exp [] [] []] (fn [t] r => @sql_inject r.Inject r.Initialize) [_] fl r