diff demo/more/conference.urs @ 1004:a87495bcaeec

Start of user management
author Adam Chlipala <adamc@hcoop.net>
date Tue, 20 Oct 2009 12:48:53 -0400
parents 61c30f0742d7
children 5a0f6ec208ce
line wrap: on
line diff
--- a/demo/more/conference.urs	Tue Oct 20 11:05:58 2009 -0400
+++ b/demo/more/conference.urs	Tue Oct 20 12:48:53 2009 -0400
@@ -1,23 +1,11 @@
-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 : 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)
+                 val paper : $(map Meta.meta paper)
 
                  con review :: {(Type * Type)}
                  constraint [Paper, User] ~ review
-                 val review : $(map meta review)
+                 val review : $(map Meta.meta review)
              end) : sig
 
     val main : unit -> transaction page