Thanks, typo in ghc's implementation of the prelude. Fixed in the upcoming 2.09. --Sigbjorn Nathan Charles writes: > 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.
- Fixity of >> and >>= Nathan Charles
- Sigbjorn Finne
