
15 Jul
2010
15 Jul
'10
8:46 a.m.
Hi, seeing http://www.haskell.org/ghc/docs/6.12.2/html/users_guide/syntax-extns.html#ne... Could you add: "Spaces are not allowed in new qualified operators!" For {-# LANGUAGE NewQualifiedOperators #-} f1 = (+) f2 = ( +) f3 = (+ ) f4 = Prelude.(+) f5 = Prelude.( +) f6 = Prelude.(+ ) f1 - f4 are ok, but f5 and f6 are rejected by ghc-6.12.3 with: Not in scope: data constructor `Prelude' So ghc seems to see a composition and: data T = T (Int -> Int) f = T.( +) goes through, whereas f = T.(+) reports: Not in scope: `T.+' Note the old qualifiation in the error message. Christian