summaryrefslogtreecommitdiff
path: root/tests/monadTest.ur
blob: 16a10f74765fc2de0322a3c5b0556c98c8ada54b (plain)
1
2
3
val x : transaction int = Monad.liftM2 plus (return 1) (return 2)

val x : transaction xbody = List.mapXiM (fn i x => return <xml><li>{[i]} = {[x]}</li></xml>) (1 :: 2 :: [])