Mercurial > gui
comparison forms.ur @ 1:4d8165e8f89a
Some help with building forms
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 06 Jan 2011 16:45:47 -0500 |
parents | |
children | 1e04008eaef7 |
comparison
equal
deleted
inserted
replaced
0:37eefd0a2ed4 | 1:4d8165e8f89a |
---|---|
1 datatype readiness a = Ready of a | Waiting | Invalid of string | |
2 datatype rpcResult a = Success of a | Failure of string | |
3 | |
4 fun warning [a] (s : signal (readiness a)) = | |
5 <xml><dyn signal={v <- s; | |
6 return (case v of | |
7 Invalid s => <xml><b>{[s]}</b></xml> | |
8 | _ => <xml/>)}/></xml> |