Re: #s causing errors when -cpp not given

2002-01-28 Thread Ian Lynagh
On Mon, Jan 28, 2002 at 12:31:35PM -, Simon Marlow wrote: > > GHC has one small extension to Haskell 98 in this area: the lexical > analyser interprets directives line '# 99 "Foo.hs"' at the beginning of > a line in order to get line number and file clues when it is parsing the > output from

RE: #s causing errors when -cpp not given

2002-01-28 Thread Simon Marlow
> I've just been looking at using cpp in Haskell scripts and I am rather > confused. I can't see anything in the report which gives > special meaning > to # in the surrounding text of literate scripts, yet if I put such > things in (both cpp directives and random things) both nhc98 and ghc > give

#s causing errors when -cpp not given

2002-01-26 Thread Ian Lynagh
Hi all I've just been looking at using cpp in Haskell scripts and I am rather confused. I can't see anything in the report which gives special meaning to # in the surrounding text of literate scripts, yet if I put such things in (both cpp directives and random things) both nhc98 and ghc give me