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

Daniel Peebles pumpkingod at gmail.com
Wed Sep 30 20:05:26 EDT 2009


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 <hyangfji at gmail.com> 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
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>


More information about the Haskell-Cafe mailing list