comparison tests/crud.ur @ 327:3a57f3b3a3f8

Fix bug in subsignature check for con synonyms
author Adam Chlipala <adamc@hcoop.net>
date Thu, 11 Sep 2008 18:36:20 -0400
parents 950320f33232
children eec65c11d3e2
comparison
equal deleted inserted replaced
326:950320f33232 327:3a57f3b3a3f8
5 constraint [Id] ~ cols 5 constraint [Id] ~ cols
6 val tab : sql_table ([Id = int] ++ cols) 6 val tab : sql_table ([Id = int] ++ cols)
7 7
8 val title : string 8 val title : string
9 9
10 val cols : $(Top.mapTT (fn t => {Show : t -> xbody}) cols) 10 val cols : colMeta cols
11 end) = struct 11 end) = struct
12 12
13 open constraints M 13 open constraints M
14 val tab = M.tab 14 val tab = M.tab
15 15
20 <tr> 20 <tr>
21 <td>{txt _ fs.T.Id}</td> 21 <td>{txt _ fs.T.Id}</td>
22 {fold [fn cols :: {Type} => $cols -> colMeta cols -> xtr] 22 {fold [fn cols :: {Type} => $cols -> colMeta cols -> xtr]
23 (fn (nm :: Name) (t :: Type) (rest :: {Type}) acc => 23 (fn (nm :: Name) (t :: Type) (rest :: {Type}) acc =>
24 [[nm] ~ rest] => 24 [[nm] ~ rest] =>
25 fn (r : $([nm = t] ++ rest)) cols => 25 fn r cols =>
26 <tr> 26 <tr>
27 <td>{cols.nm.Show r.nm}</td> 27 <td>{cols.nm.Show r.nm}</td>
28 {acc (r -- nm) (cols -- nm)} 28 {acc (r -- nm) (cols -- nm)}
29 </tr>) 29 </tr>)
30 (fn _ _ => <tr></tr>) 30 (fn _ _ => <tr></tr>)