view gui.ur @ 19:3a303df9ae92

Partial generalize togglePanel solution (breaks build)
author Ron de Bruijn <rmbruijn@gmail.com>
date Fri, 23 Sep 2011 13:30:01 +0200
parents 16447dc6a68c
children 554e342665fe
line wrap: on
line source
class gui = fn t :: Type => fn xcomponent :: Type => t -> xcomponent

fun gui_xbody (x:xbody) : xbody = x
fun gui_xtable (x:xtable) : xtable = x

fun mkGui [t ::: Type] [xcomponent:::Type] (toXml : t -> xcomponent) = toXml 

fun toXml [t:::Type] [xcomponent ::: Type] (xmlize: gui t xcomponent) = xmlize 

(* class gui t = t -> xbody *)

(* fun toXml [t ::: Type] (xmlize : gui t) = xmlize *)

(* fun gui_xbody x = x *)

(* fun mkGui [t ::: Type] (toXml : t -> xbody) = toXml *)