
10 May
2011
10 May
'11
4:05 a.m.
Andrew Butterfield wrote:
Why not indeed ?
Roel van Dijk wrote:
import Control.Category ( (>>>) ) f = Main.id >>> show >>> (++ " - message received") >>> putStrLn
Indeed, I agree. I sometimes do that, too, when I want to emphasize the idea of "applying tools one after the other". But most often I just use traditional "function composition" notation. That reminds us of the connection with mathematical functions. It also raises less eyebrows when other people read my code and see