[GHC] #1517: Ratio Int is not well ordered
GHC
trac at galois.com
Sat Jul 21 14:27:23 EDT 2007
#1517: Ratio Int is not well ordered
-----------------------------------+----------------------------------------
Reporter: dbenbenn at gmail.com | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.6.1
Severity: normal | Resolution:
Keywords: | Difficulty: Moderate (1 day)
Os: Multiple | Testcase:
Architecture: Multiple |
-----------------------------------+----------------------------------------
Changes (by dbenbenn at gmail.com):
* difficulty: Easy (1 hr) => Moderate (1 day)
Comment:
I've attached a patch to Real.lhs that mostly fixes the problem. If you
apply the patch to GHC 6.6.1 and recompile, then compile demo.hs with the
new ghc, it will give the right output. demo.hs will also work right with
the new ghci command.
runhaskell and runghc, however, still have the bug. I haven't been able
to figure out where their implementation of Ratio is coming from.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1517>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list