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

Hong Yang hyangfji at gmail.com
Wed Sep 30 22:41:39 EDT 2009


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

Also in GHCI,
Prelude> :t (--++)
No in scope: '--++'
Prelude> :t (+)
(+) :: (Num a) => a -> a -> a

Thanks,

Hong

On Wed, Sep 30, 2009 at 7:05 PM, Daniel Peebles <pumpkingod at gmail.com>wrote:

> 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
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090930/af7ee615/attachment.html


More information about the Haskell-Cafe mailing list