[email protected]
[Top] [All Lists]

Re: [Haskell-cafe] "--" comments

Subject: Re: [Haskell-cafe] "--" comments
From: Raynor Vliegendhart
Date: Sat, 12 Dec 2009 12:19:12 +0100
On Sat, Dec 12, 2009 at 5:34 AM, Brandon S. Allbery KF8NH
<[email protected]> wrote:
>
> > On Dec 11, 2009, at 23:30 , michael rice wrote:
> >
> > I'm just noticing that "--" comments don't seem to work properly when the 
> > first character following them is a '*'.
>
> I believe the spec only treats "-- " as a comment leader; this is why Haddock 
> markup has a space between the "--" and the markup.

The spec [1] treats anything that starts with two or more dashes not
followed by a non-symbol to be the start of a comment.


[1] http://www.haskell.org/onlinereport/syntax-iso.html
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>