Mercurial > urweb
view tests/monadTest.ur @ 1847:8958b580d026
Change Name_js to skip code snippets that depend on the CSRF-protection signature
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Mon, 01 Apr 2013 10:13:49 -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 :: [])