adam@1: datatype readiness a = Ready of a | Waiting | Invalid of string adam@1: datatype rpcResult a = Success of a | Failure of string adam@1: adam@1: val warning : a ::: Type -> signal (readiness a) -> xbody kkallio@9: kkallio@9: val warningFmt : a ::: Type -> ctx ::: {Unit} -> [ctx ~ body] kkallio@9: => (string -> xml (ctx ++ body) [] []) -> signal (readiness a) kkallio@9: -> xml (ctx ++ body) [] [] kkallio@9: (* A version of warning that adds a chrome wrapper to the warning message. *)