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

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to