
31 Oct
2007
31 Oct
'07
2:17 p.m.
liftM2 (/) sum length. Anyway, the closest you can get in Haskell is something like this, using the infix expressions of Ken Shan and Dylan Thurstonhttp://www.haskell.org/pipermail/haskell-cafe/2002-July/003215.html : [....]
It works (?), but it's pretty ugly and hardly seems worth it, unfortunately.
Hmm.. that might be decent if you added rules to pretty-print them in lhs2tex. The src code would be slightly messy but the formatted code would be very clean. And it opens the doors for other binop decorators. Interesting idea.
-Brent
Tim Newsham http://www.thenewsh.com/~newsham/