comparison demo/more/meta.urs @ 1030:6bcc1020d5cd

Start of Decision
author Adam Chlipala <adamc@hcoop.net>
date Mon, 02 Nov 2009 15:48:06 -0500
parents 16f7cb0891b6
children
comparison
equal deleted inserted replaced
1029:53a22f46f377 1030:6bcc1020d5cd
24 val allPopulatedTr : ts ::: {(Type * Type)} -> $(map meta ts) -> $(map fst ts) -> folder ts 24 val allPopulatedTr : ts ::: {(Type * Type)} -> $(map meta ts) -> $(map fst ts) -> folder ts
25 -> xml ([Tr] ++ form) [] (map snd ts) 25 -> xml ([Tr] ++ form) [] (map snd ts)
26 26
27 val ensql : avail ::: {{Type}} -> ts ::: {(Type * Type)} -> $(map meta ts) -> $(map snd ts) -> folder ts 27 val ensql : avail ::: {{Type}} -> ts ::: {(Type * Type)} -> $(map meta ts) -> $(map snd ts) -> folder ts
28 -> $(map (sql_exp avail [] []) (map fst ts)) 28 -> $(map (sql_exp avail [] []) (map fst ts))
29
30 con private = fn t :: Type =>
31 {Nam : string,
32 Initialize : t,
33 Show : t -> xbody,
34 Inject : sql_injectable t}
35
36 val initialize : ts ::: {Type} -> $(map private ts) -> folder ts -> $(map (sql_exp [] [] []) ts)