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
| However, in return, perhaps somebody can supply me with parse trees for
| the following:
|
| - - 1(accepted by nhc and hbc)
| (- 1 `n6` 1) where infix 6 `n6` (accepted by nhc, hbc, ghc)
| (- 1 `r6` 1) where infixr 6 `r6` (accepted by nhc,