Mercurial > urweb
view demo/more/meta.urs @ 1004:a87495bcaeec
Start of user management
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 20 Oct 2009 12:48:53 -0400 |
parents | |
children | d3af9e54c828 |
line wrap: on
line source
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)