diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-10-20 11:05:58 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-10-20 11:05:58 -0400 |
commit | 2fdb4d380392a2a221e4f0ebec1bf555e2c73ba3 (patch) | |
tree | d11bc3451bff30a58f66c2d1dbb41852526a308f /demo/more/conference.urs | |
parent | b3cfaa74a148d81d3c4a5dcc40b5ae3532b371ea (diff) |
Registering for Conference1
Diffstat (limited to 'demo/more/conference.urs')
-rw-r--r-- | demo/more/conference.urs | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/demo/more/conference.urs b/demo/more/conference.urs index 696b8b32..aecdf143 100644 --- a/demo/more/conference.urs +++ b/demo/more/conference.urs @@ -1,18 +1,23 @@ -con reviewMeta = fn (db :: Type, widget :: Type) => +con meta = fn (db :: Type, widget :: Type) => {Show : db -> xbody, Widget : nm :: Name -> xml form [] [nm = widget], WidgetPopulated : nm :: Name -> db -> xml form [] [nm = widget], Parse : widget -> db, Inject : sql_injectable db} -val int : reviewMeta (int, string) -val float : reviewMeta (float, string) -val string : reviewMeta (string, string) -val bool : reviewMeta (bool, bool) +val int : meta (int, string) +val float : meta (float, string) +val string : meta (string, string) +val bool : meta (bool, bool) functor Make(M : sig + con paper :: {(Type * Type)} + constraint [Id, Title] ~ paper + val paper : $(map meta paper) + con review :: {(Type * Type)} - val review : $(map reviewMeta review) + constraint [Paper, User] ~ review + val review : $(map meta review) end) : sig val main : unit -> transaction page |