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: fun warning [a] (s : signal (readiness a)) =
adam@1: {[s]}
adam@1: | _ => )}/>
kkallio@9:
adam@27: fun warningFmt [a ::: Type] [ctx ::: {Unit}] [ctx ~ [Dyn]]
adam@27: (wrap : string -> xml ([Dyn] ++ ctx) [] [])
kkallio@9: (s : signal (readiness a)) =
kkallio@9: wrap s
kkallio@9: | _ => )}/>