view tests/monadTest.ur @ 1812:ea5f920ffa35

Removed setting of ignored XMLHttpRequest headers.
author Vladimir Shabanov <vshabanoff@gmail.com>
date Thu, 30 Aug 2012 17:04:30 +0400
parents a613cae954ca
children
line wrap: on
line source
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 :: [])