summaryrefslogtreecommitdiff
path: root/demo/more/meta.urs
blob: d4d626c54ae1242bea34ea5d67c1954c630882c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
con meta = fn (db :: Type, widget :: Type) =>
                    {Nam : string,
                     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 : string -> meta (int, string)
val float : string -> meta (float, string)
val string : string -> meta (string, string)
val bool : string -> meta (bool, bool)