[Haskell-cafe] Those damned parentheses

Roel van Dijk vandijk.roel at gmail.com
Tue May 10 09:53:46 CEST 2011


On 10 May 2011 09:47, Andrew Butterfield <andrew.butterfield at cs.tcd.ie> wrote:
> Why not indeed ?
> (-->) = flip (.)
> f = Main.id --> show --> (++ " = message received") --> putStrLn

-- (>>>) :: Category cat => cat a b -> cat b c -> cat a c

import Control.Category ( (>>>) )
f = Main.id >>> show >>> (++ " - message received") >>> putStrLn



More information about the Haskell-Cafe mailing list