kkallio@8: datatype panelState = Open | Closed kkallio@8: rmbruijn@19: con formatCtl :: {Unit} -> Type = fn other_ctx => {FormatPanel : (xml ([Body] ++ other_ctx) [] []) -> (xml ([Body] ++ other_ctx) [] []) -> (xml ([Body] ++ other_ctx) [] []), rmbruijn@19: OpenCtl : transaction unit -> xml ([Body] ++ other_ctx) [] [], rmbruijn@19: CloseCtl : transaction unit -> xml ([Body] ++ other_ctx) [] []} kkallio@8: kkallio@8: val defaultFormat = {FormatPanel = fn ctl panel => {ctl}{panel}, kkallio@8: OpenCtl = fn behaviour =>