Re: [Haskell-cafe] Fixity of >>>

2007-07-26 Thread Donald Bruce Stewart
ross: > On Fri, Jul 27, 2007 at 12:08:30AM +1000, Donald Bruce Stewart wrote: > > There's a theory this should work: > > > > getContents >>= lines >>> map read >>> sum >>> print > > > > But unfortunately we have: > > > > `(>>=)' [infixl 1] > > `(>>>)' [infixr 1] > > > > Meaning w

Re: [Haskell-cafe] Fixity of >>>

2007-07-26 Thread Ross Paterson
On Fri, Jul 27, 2007 at 12:08:30AM +1000, Donald Bruce Stewart wrote: > There's a theory this should work: > > getContents >>= lines >>> map read >>> sum >>> print > > But unfortunately we have: > > `(>>=)' [infixl 1] > `(>>>)' [infixr 1] > > Meaning we must write: > > getCo

[Haskell-cafe] Fixity of >>>

2007-07-26 Thread Donald Bruce Stewart
There's a theory this should work: getContents >>= lines >>> map read >>> sum >>> print But unfortunately we have: `(>>=)' [infixl 1] `(>>>)' [infixr 1] Meaning we must write: getContents >>= (lines >>> map read >>> sum >>> print) Indeed, all Arrow ops are infixr. Are ther