adam@32: con gui (t :: Type) (ctx :: {Unit}) = [[Dyn] ~ ctx] => t -> xml ([Dyn] ++ ctx) [] [] kkallio@8: adam@27: fun gui_xbody [[Dyn] ~ _] x = x adam@27: fun gui_xtable [[Dyn] ~ _] x = x kkallio@8: adam@27: fun mkGui [t ::: Type] [ctx ::: {Unit}] (toXml : [[Dyn] ~ ctx] => t -> xml ([Dyn] ++ ctx) [] []) = @toXml kkallio@8: adam@27: fun toXml [t ::: Type] [ctx ::: {Unit}] [[Dyn] ~ ctx] (toXml : gui t ctx) = toXml