Mercurial > urweb
comparison demo/crud.urs @ 622:d64533157f40
Debug reverse-engineering unification
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 21 Feb 2009 16:11:56 -0500 |
parents | 0767d7ad0c3a |
children | 6c4643880df5 |
comparison
equal
deleted
inserted
replaced
621:8998114760c1 | 622:d64533157f40 |
---|---|
4 Widget : nm :: Name -> xml form [] [nm = t_formT.2], | 4 Widget : nm :: Name -> xml form [] [nm = t_formT.2], |
5 WidgetPopulated : nm :: Name -> t_formT.1 | 5 WidgetPopulated : nm :: Name -> t_formT.1 |
6 -> xml form [] [nm = t_formT.2], | 6 -> xml form [] [nm = t_formT.2], |
7 Parse : t_formT.2 -> t_formT.1, | 7 Parse : t_formT.2 -> t_formT.1, |
8 Inject : sql_injectable t_formT.1} | 8 Inject : sql_injectable t_formT.1} |
9 con colsMeta = fn cols :: {(Type * Type)} => $(mapT2T colMeta cols) | 9 con colsMeta = fn cols :: {(Type * Type)} => $(map colMeta cols) |
10 | 10 |
11 val int : string -> colMeta (int, string) | 11 val int : string -> colMeta (int, string) |
12 val float : string -> colMeta (float, string) | 12 val float : string -> colMeta (float, string) |
13 val string : string -> colMeta (string, string) | 13 val string : string -> colMeta (string, string) |
14 val bool : string -> colMeta (bool, bool) | 14 val bool : string -> colMeta (bool, bool) |
15 | 15 |
16 functor Make(M : sig | 16 functor Make(M : sig |
17 con cols :: {(Type * Type)} | 17 con cols :: {(Type * Type)} |
18 constraint [Id] ~ cols | 18 constraint [Id] ~ cols |
19 val tab : sql_table ([Id = int] ++ mapT2T fstTT cols) | 19 val tab : sql_table ([Id = int] ++ map fstTT cols) |
20 | 20 |
21 val title : string | 21 val title : string |
22 | 22 |
23 val cols : colsMeta cols | 23 val cols : colsMeta cols |
24 end) : sig | 24 end) : sig |