[project @ 2002-06-18 09:31:05 by simonpj]
authorsimonpj <unknown>
Tue, 18 Jun 2002 09:31:06 +0000 (09:31 +0000)
committersimonpj <unknown>
Tue, 18 Jun 2002 09:31:06 +0000 (09:31 +0000)
commit45afba05c6d0fca1e1b2d101c097a7738bb73b25
tree0ed61f84452ecc039c8b8c47c48d754cb27e0652
parent1ded2c9515562bbe3a231f7cb66a931cf7513718
[project @ 2002-06-18 09:31:05 by simonpj]
--------------------------
Deal with NaN and Infinity
--------------------------

This commit arranges that

* GHC.Real exports infinity   :: Rational = 1 :% 0
notANumber :: Rational = 0 :% 0

* GHC.Float.fromRat converts these Rational non-numbers into
  their Float/Double equivalents

As a result, arith015/arith016 start to work again.  We can
read NaN and Infinity into Float/Double.
GHC/Float.lhs
GHC/Real.lhs
Text/Read/Lex.hs