Mercurial > gui
comparison gui.ur @ 32:d32fb0f7b137
Update for Ur/Web's new type class handling
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 29 Jul 2012 12:28:46 -0400 |
parents | 5905b56e0cd9 |
children |
comparison
equal
deleted
inserted
replaced
31:b5432d74841a | 32:d32fb0f7b137 |
---|---|
1 class gui = fn (t :: Type) (ctx :: {Unit}) => [[Dyn] ~ ctx] => t -> xml ([Dyn] ++ ctx) [] [] | 1 con gui (t :: Type) (ctx :: {Unit}) = [[Dyn] ~ ctx] => t -> xml ([Dyn] ++ ctx) [] [] |
2 | 2 |
3 fun gui_xbody [[Dyn] ~ _] x = x | 3 fun gui_xbody [[Dyn] ~ _] x = x |
4 fun gui_xtable [[Dyn] ~ _] x = x | 4 fun gui_xtable [[Dyn] ~ _] x = x |
5 | 5 |
6 fun mkGui [t ::: Type] [ctx ::: {Unit}] (toXml : [[Dyn] ~ ctx] => t -> xml ([Dyn] ++ ctx) [] []) = @toXml | 6 fun mkGui [t ::: Type] [ctx ::: {Unit}] (toXml : [[Dyn] ~ ctx] => t -> xml ([Dyn] ++ ctx) [] []) = @toXml |