Hi,

Is the following legal Haskell?

> infixr 0 `foo`
> infixr 0 `bar`
> 
> x `foo` y = "foo(" ++ x ++ "," ++ y ++ ")"
> x `bar` y = "bar(" ++ x ++ "," ++ y ++ ")"
> dubious a b c = a `foo` b `bar` c

According to the grammar in the Haskell report, I don't think it is.
However, ghc-0.24 (ancient, I know) and Hugs 1.3 both accept it without
complaint.

-- 
Fergus Henderson <[EMAIL PROTECTED]>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger [EMAIL PROTECTED]         |     -- the last words of T. S. Garp.

Reply via email to