annotate 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
rev   line source
adamc@352 1 con colMeta = fn t_formT :: (Type * Type) =>
adamc@352 2 {Nam : string,
adamc@352 3 Show : t_formT.1 -> xbody,
adamc@352 4 Widget : nm :: Name -> xml form [] [nm = t_formT.2],
adamc@352 5 WidgetPopulated : nm :: Name -> t_formT.1
adamc@352 6 -> xml form [] [nm = t_formT.2],
adamc@352 7 Parse : t_formT.2 -> t_formT.1,
adamc@352 8 Inject : sql_injectable t_formT.1}
adamc@346 9 con colsMeta = fn cols :: {(Type * Type)} => $(mapT2T colMeta cols)
adamc@326 10
adamc@325 11 functor Make(M : sig
adamc@352 12 con cols :: {(Type * Type)}
adamc@352 13 constraint [Id] ~ cols
adamc@352 14 val tab : sql_table ([Id = int] ++ mapT2T fstTT cols)
adamc@325 15
adamc@352 16 val title : string
adamc@325 17
adamc@352 18 val cols : colsMeta cols
adamc@352 19 end) : sig
adamc@352 20 val main : unit -> transaction page
adamc@325 21 end