#4867: ghci displays negative floats incorrectly (was: Incorrect result from
trig
functions)
-------------------------------+--------------------------------------------
Reporter: gwright | Owner: gwright
Type: bug | Status: new
Priority: high | Milestone: 7.0.2
Component: GHCi | Version: 7.0.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: MacOS X | Blocking:
Architecture: x86_64 (amd64) | Failure: Incorrect result at runtime
-------------------------------+--------------------------------------------
Comment(by gwright):
Hmm. On the ghc-7.0 branch, I get
{{{
gwright-macbook> inplace/bin/ghc-stage2 --interactive
GHCi, version 7.0.1.20110203: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> showsPrec 0 (-1.0 :: Double) ""
"-1.0"
}}}
I'll take a look at HEAD; looks like something strange is going on. When I
saw this happen in the 7.0 branch, I thought it was caused by my attempts
to debug `Float.lhs`. If it's showing up in HEAD that's not the cause.
This is a tad worrisome and should be understood before the 7.0.2 release.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4867#comment:32>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs