
13 Dec
2010
13 Dec
'10
4:30 p.m.
On Mon, 13 Dec 2010, caseyh@istar.ca wrote:
do let x = 7 y <- x+1, Writer ("inc\n") z <- 2*y, Writer ("double\n") z-1, Writer ("dec\n")
Or some other delimiter than the comma?
You can simply define your own syntax using an infix operator, say: a # str = Writer (a, str) do let x = 7 y <- x+1 # "inc\n" z <- 2*y # "double\n" z-1 # "dec\n"