Simon Peyton-Jones wrote:
>
> * Comments *start* with a lexeme, as previously discussed, and I think
> this is fine.
>
> * The opening lexeme may be '--', '---' etc for ordinary comments, or
> '{-' for nested comments
>
> * Note that '{--' is not a lexeme at all, so the maximal munch rule won't
> munch it. Hence '{--' lexes as '{-' followed by stuff; it does start
> a nested comment.
>
> * Nested comments are closed, as in all earlier Haskells, by character by
> character matching for -}. (Modulo nesting, as now.)
Sorry for interrupting, but how are inner comments opened then? By
character by character matching for {- ? So is this legal
{- bla {-- blabla -} bla -}
?
Regards,
- Andreas
--
Andreas Rossberg, [EMAIL PROTECTED]
:: be declarative. be functional. just be. ::