FW: ghc misreports the error line
Simon Peyton-Jones
simonpj at microsoft.com
Thu Nov 1 09:56:26 EST 2001
Folks,
Malcolm Wallace wrote:
> No he isn't. At least, I can't find anything in the Report which
> disallows literal newline characters in a string literal. Oh, hold on.
> The production
>
> string -> " { graphic_<"|`> | space | escape | gap } "
>
> does seem to disallow newline characters. But it also disallows
> literal tab characters! I submit that this is a bug in the Haskell'98
> Report, and it should really say
>
> string -> " { graphic_<"|`> | whitechar | escape | gap } "
I've decided to leave the Report as it is: no tabs, no newlines etc
in literal strings. Use escapes and string gaps. Rationale:
it's an unforced change; there's no consenus; and the general
feeling here is in any case to prohibit tabs, newlines in literal
strings.
Since its a no-op, I'm not posting this to the Haskell list.
Simon
More information about the Glasgow-haskell-bugs
mailing list