Manuel Chakravarty writes:
 > Scary, but true...the floats in my version of ghc don't like 
 > to be referenced.  The program
 > 
 >   data MassPnt  = MassPnt Float (Float, Float)
 >                deriving (Show)
 > 
 >   main = do
 >         print 1.18088e+11                        -- (1)
 >         let 
 >           x = 1.18088e+11
 >           p = MassPnt x (-0.768153, -0.742202)   -- (*)
 >         print x                                  -- (2)
 > 
 > prints `1.18088e+11' successfully at line (1), but fails in
 > line (2) with `Fail: Char.intToDigit: not a digit'.

The problem persists in GHC-2.10 and GHC-3.00 (which, by the way, was
a dream to install except for the Cubic Spline problem noted before).

Jon

Reply via email to