I expect this is already known but I couldn't find anything saying
so. Both >> and >>= are supposed to be left associative in Haskell 1.4.
However, ghc-2.08 treats them as right associative as Haskell 1.3 does.

The following example is Haskell 1.4 compliant but generates an
error in ghc:

main = readFile "Main.hs" >>= (putChar . head) >> print True

Nathan.

Reply via email to