Alastair Reid wrote:

 | > According to the Haskell98 report, section 2.3:
 | > `For example, "-->" or "--|" do not begin a comment.'
 | 
 | I hope it will be a long time because fixing this bug will break my
 | habit of separating major pieces of code with "comments" like:
 :
 | I remember mentioning this when the change was suggested at ICFP last
 | year - but didn't get much sympathy then...

But the Haskell98 report says:

  An ordinary comment begins with a lexeme consisting of two or more
  consecutive dashes (e.g. --) and extends to the following newline.
  The comment must begin with a lexeme consisting entirely of
  dashes, parsed according to the maximal-munch rule.

This means that your style of comments (and as it happens, also mine) is
perfectly fine, right?

This style of comments is not allowed though:

  --=========================================
  -- Parser
  --=========================================

Regards,
Koen.

--
Koen Claessen         http://www.cs.chalmers.se/~koen     
phone:+46-31-772 5424      e-mail:[EMAIL PROTECTED]
-----------------------------------------------------
Chalmers University of Technology, Gothenburg, Sweden

Reply via email to