I don't think it's a bug. --++ is a valid operator, whereas --
introduces a comment.

In GHCI:

Prelude> let (--++) = (+) in 5 --++ 6
11

Hope this helps,
Dan


On Wed, Sep 30, 2009 at 7:52 PM, Hong Yang <[email protected]> wrote:
> Hi,
>
> I got an error if one of lines reads "--++ bla bla bla" where I tried to
> comment, but "-- ++ bla bla bla" (notice the space after "--") is OK.
>
> Do you think this revealed a tiny bug in the GHC compiler (I am using
> Windows Haskell Platform 2009.2.0.2)?
>
> Thanks,
>
> Hong
>
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to