Mercurial > urweb
view tests/monadTest.ur @ 2106:18ef1db770f6
Fix a potential memory bug in fastcgi.c
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 22 Jan 2015 09:55:05 -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 :: [])