Re: Floats don't like to be referenced [was: Buggy derived instance of Show]
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) >
Floats don't like to be referenced [was: Buggy derived instance of Show]
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