Mercurial > urweb
view tests/monadTest.ur @ 1887:2e6795cc992f
A fancier test for the new SQL constraints subtyping
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Mon, 04 Nov 2013 16:00:48 -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 :: [])