On Thu, Jan 03, 2002 at 05:27:43PM -, Simon Marlow wrote:
'(' exp(i+1) op(a,i) ')'
'(' op(a,i) exp(i+1) ')'
'(' lexp(i) op(l,i) ')'
'(' op(r,i) rexp(i) ')'
And for the sake of fewer ambiguities, replace each op(a,i)
with op(n,i)
in the existing two
Thu, 3 Jan 2002 17:27:43 -, Simon Marlow [EMAIL PROTECTED] pisze:
I think it would be better to change the syntax to match the text rather
than the other way around: clearly sections like (++a++b) are desirable.
I would even argue that (a++b++) should mean \x - a++b++x
Of course Haskell
On Thu, Jan 03, 2002 at 05:10:56PM +, Malcolm Wallace wrote:
This program:
module Main where
f = map (++a++b)
g = map (a++b++)
main = do print (f [x,y,z])
print (g [x,y,z])
gives the following error messages with ghc (versions 4.08.2 and 5.02):
This program:
module Main where
f = map (++a++b)
g = map (a++b++)
main = do print (f [x,y,z])
print (g [x,y,z])
gives the following error messages with ghc (versions 4.08.2
and 5.02):
plusplus.hs:3:
The operator `++' [infixr 5] of a