Mercurial > urweb
comparison tests/crud.urs @ 352:2205d5cb416a
Get type definitions font-locking again
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 12 Oct 2008 10:30:08 -0400 |
parents | a94a79820d49 |
children | 24a31b35e08f |
comparison
equal
deleted
inserted
replaced
351:d5148178a7be | 352:2205d5cb416a |
---|---|
1 con colMeta = fn t_formT :: (Type * Type) => { | 1 con colMeta = fn t_formT :: (Type * Type) => |
2 Nam : string, | 2 {Nam : string, |
3 Show : t_formT.1 -> xbody, | 3 Show : t_formT.1 -> xbody, |
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 -> xml form [] [nm = t_formT.2], | 5 WidgetPopulated : nm :: Name -> t_formT.1 |
6 Parse : t_formT.2 -> t_formT.1, | 6 -> xml form [] [nm = t_formT.2], |
7 Inject : sql_injectable t_formT.1 | 7 Parse : t_formT.2 -> t_formT.1, |
8 } | 8 Inject : sql_injectable t_formT.1} |
9 con colsMeta = fn cols :: {(Type * Type)} => $(mapT2T colMeta cols) | 9 con colsMeta = fn cols :: {(Type * Type)} => $(mapT2T colMeta cols) |
10 | 10 |
11 functor Make(M : sig | 11 functor Make(M : sig |
12 con cols :: {(Type * Type)} | 12 con cols :: {(Type * Type)} |
13 constraint [Id] ~ cols | 13 constraint [Id] ~ cols |
14 val tab : sql_table ([Id = int] ++ mapT2T fstTT cols) | 14 val tab : sql_table ([Id = int] ++ mapT2T fstTT cols) |
15 | 15 |
16 val title : string | 16 val title : string |
17 | 17 |
18 val cols : colsMeta cols | 18 val cols : colsMeta cols |
19 end) : sig | 19 end) : sig |
20 val main : unit -> transaction page | 20 val main : unit -> transaction page |
21 end | 21 end |