Re: [Haskell-cafe] message passing style in Monad

2008-09-14 Thread Ketil Malde
Simon Richard Clarkstone <[EMAIL PROTECTED]> writes: >> I can also do >> >> readFile "readme.markdown" <.> lines <.> length >> >> by making (<.>) = flip fmap ? -k -- If I haven't seen further, it is by standing in the footprints of giants ___ Haske

Re: [Haskell-cafe] message passing style in Monad

2008-09-14 Thread Simon Richard Clarkstone
jinjing wrote: I found that as I can do xs.map(+1).sort by redefine . to be a . f = f a infixl 9 . This looks rather like ($), but backwards. I believe the F# name for this operator is (|>), which is also a legal name for it in Haskell. Odd, since (|) alone isn't legal. Calling it

[Haskell-cafe] message passing style in Monad

2008-09-10 Thread jinjing
I found that as I can do xs.map(+1).sort by redefine . to be a . f = f a infixl 9 . I can also do readFile "readme.markdown" <.> lines <.> length by making a <.> b = a .liftM b infixl 9 <.> Kinda annoying, but the option is there. - jinjing _