aboutsummaryrefslogtreecommitdiffhomepage
path: root/demo/more/conference.urs
blob: 696b8b322471332e1e1c717da5c8e8385ca1e3f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
con reviewMeta = 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)

functor Make(M : sig
                 con review :: {(Type * Type)}
                 val review : $(map reviewMeta review)
             end) : sig

    val main : unit -> transaction page

end