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

Hong Yang hyangfji at gmail.com
Wed Sep 30 22:48:14 EDT 2009


Nowhere any Haskell book mentioned "line comments start with "-- ", not just
"--"." It is just people usually put "-- " ahead of comments.

I can successfully compile "--print bla bla bla."
On Wed, Sep 30, 2009 at 7:36 PM, Sebastian Sylvan <
sebastian.sylvan at gmail.com> wrote:

>
>
>   On Thu, Oct 1, 2009 at 12:52 AM, 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)?
>>
>
> Line comments start with "-- ", not just "--".
>
> --
> Sebastian Sylvan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090930/a9884610/attachment.html


More information about the Haskell-Cafe mailing list