Re: read-ing scientific notation

2001-10-14 Thread Jon Fairbairn
The lexical syntax says that 10e3 means 10 e3 (i.e. two lexemes). I don't like this choice, and it could be fixed in the Revised H98 report. What is the likelihood of anyone *intentionally* writing an integer abutted directly with a varid, followed directly by another

RE: read-ing scientific notation

2001-10-13 Thread Malcolm Wallace
The lexical syntax says that 10e3 means 10 e3 (i.e. two lexemes). I don't like this choice, and it could be fixed in the Revised H98 report. What is the likelihood of anyone *intentionally* writing an integer abutted directly with a varid, followed directly by another

RE: read-ing scientific notation

2001-10-12 Thread Simon Peyton-Jones
| GHC is oddly particular about decimal points in read-ing in | of Doubles in scientific notation. It seems that read | 3.0e-06 is acceptable but read 3e-06 is not (both read | 3 and read 3.0 work fine as Doubles). It's the same in | nhc and hugs. Perhaps this is some standard somewhere that

RE: read-ing scientific notation

2001-10-12 Thread Mark Carroll
On Fri, 12 Oct 2001, Simon Peyton-Jones wrote: | GHC is oddly particular about decimal points in read-ing in | of Doubles in scientific notation. It seems that read | 3.0e-06 is acceptable but read 3e-06 is not (both read | 3 and read 3.0 work fine as Doubles). It's the same in (snip)