[Haskell-cafe] error on "--++ bla bla bla"

Ketil Malde ketil at malde.org
Thu Oct 1 03:57:29 EDT 2009


Hong Yang <hyangfji at gmail.com> writes:

> But in my program, I did not define "--++".

And that's what the error tells you, no?

Defining operators (or not) doesn't change the syntax.  Since the lexeme
--++ is syntactially a valid operator, it will be parsed as such,
regardless of whether it is defined or not.

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list