FW: ghc misreports the error line

2001-11-01 Thread Simon Peyton-Jones
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 cha

Re: whitespace in strings (was "ghc misreports the error line")

2001-10-25 Thread George Russell
Malcolm Wallace wrote, answering me: > > On the contrary I'm glad to see that the Haskell standard is so sensible. > > I edit Haskell using XEmacs, and I don't want to have to do an octal > > or hexadecimal dump of my source code to determine whether a string > > contains a tab, newline, return,

RE: ghc misreports the error line

2001-10-25 Thread Simon Marlow
> And note that no compiler/interpreter currently rejects a string > containing a literal tab character. My working version of GHC does :-) Simon ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-h

RE: ghc misreports the error line

2001-10-24 Thread Malcolm Wallace
> On the contrary I'm glad to see that the Haskell standard is so sensible. > I edit Haskell using XEmacs, and I don't want to have to do an octal > or hexadecimal dump of my source code to determine whether a string > contains a tab, newline, return, line feed, Unicode en-space (there are > sev

RE: ghc misreports the error line

2001-10-24 Thread George Russell
Malcolm Wallace wrote: [snip] > 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 characte

RE: ghc misreports the error line

2001-10-24 Thread Malcolm Wallace
> > chars = " > > foo > > bar" > You *are* violating the Haskell 98 spec, I'm afraid :) 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 | ga

RE: ghc misreports the error line

2001-10-24 Thread Simon Marlow
> > module Test where > > > chars = " > > foo > > bar" > > > this line is in error and it is line 7 > > ghc test.lhs > test.lhs:5: parse error on input `in' > > It turns out that in the script I am writing > (semi-automatic generation of a grammar file) > being able to use the above notation

Re: ghc misreports the error line

2001-10-23 Thread Ian Lynagh
On Tue, Oct 23, 2001 at 03:24:56PM -0400, Sengan wrote: > > module Test where > > > chars = " > > foo > > bar" Try this instead: > module Test where > chars = "\n\ > \foo\n\ > \bar" Ian ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http

ghc misreports the error line

2001-10-23 Thread Sengan
> module Test where > chars = " > foo > bar" > this line is in error and it is line 7 ghc test.lhs test.lhs:5: parse error on input `in' It turns out that in the script I am writing (semi-automatic generation of a grammar file) being able to use the above notation for multilined strings is muc