diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-11-02 15:48:06 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-11-02 15:48:06 -0500 |
commit | f078aa703a4ba19b06e6d7c9a49fc9caae26016c (patch) | |
tree | e891f485d240c659d16bcaa8843d8e4d1911c055 /demo/more/meta.ur | |
parent | d0615b47fe12ed930d0e29f6840542753037ef0b (diff) |
Start of Decision
Diffstat (limited to 'demo/more/meta.ur')
-rw-r--r-- | demo/more/meta.ur | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/demo/more/meta.ur b/demo/more/meta.ur index 74b5004f..b8a3d584 100644 --- a/demo/more/meta.ur +++ b/demo/more/meta.ur @@ -80,3 +80,12 @@ fun ensql [avail] [ts ::: {(Type * Type)}] (r : $(map meta ts)) (vs : $(map snd 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 |