Numeric literals

Mark Carroll mark@chaos.x-philes.com
Mon, 27 Aug 2001 15:40:18 -0400 (EDT)


Today's other question has to do with numeric literals. How do I write
literals for interesting IEEE values, e.g.

Prelude> x
Infinity
Prelude> :type x
Double
Prelude> (read "Infinity") :: Double
*** Exception: Ratio.%: zero denominator
Prelude> 

...?

If I'm just missing something obvious in the standard documentation,
please feel free to just give me a citation. I've already tried sections
2.5 and 6.4.1 of the Haskell Report, etc. though.

Thanks.

-- Mark