[Haskell-cafe] Those damned parentheses

Yitzchak Gale gale at sefer.org
Tue May 10 10:05:18 CEST 2011

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

More information about the Haskell-Cafe mailing list