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