view tests/monadTest.ur @ 1982:2b95ecdd94eb

Use localtime, not gmtime, for datetime functions.
author Patrick Hurst <phurst@mit.edu>
date Sat, 25 Jan 2014 18:15:14 -0500
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 :: [])