Quantcast
Channel: GHC: Ticket #2076: rational infinities don't compare correctly to each other
Browsing latest articles
Browse All 18 View Live

status changed; resolution set

status changed from new to closedresolution set to wontfix Lots of good discussion on this subject in #3676. I think we concluded that Rational does not include infinity as a value. Based on that, and...

View Article



cc set

ccjeffreyjthornton@… added

View Article

Article 6

In libraries/base/GHC/Real.lhs, I added instance (Integral a) => Ord (Ratio a) where {-# SPECIALIZE instance Ord Rational #-} + (x:%0) <= (x':%0 ) = x < 0 || 0 < x' + (x:%0) <= (_ :%_ )...

View Article

Article 5

In libraries/base/GHC/Real.lhs, I added instance (Integral a) => Ord (Ratio a) where {-# SPECIALIZE instance Ord Rational #-} + (x:%0) <= (x':%0 ) = x < 0 0 < x' + (x:%0) <= (_ :%_ ) =...

View Article

owner, failure set

owner set to jeffreyfailure set to None/Unknown

View Article


os changed

os changed from Unknown to Unknown/Multiple

View Article

architecture changed

architecture changed from Multiple to Unknown/Multiple

View Article

component changed; difficulty, milestone set

difficulty set to Unknowncomponent changed from Compiler to libraries/basemilestone set to _|_ Actually, if you use 1%0 then you just get lots of *** Exception: Ratio.%: zero denominator If you use...

View Article


attachment set

attachment set to infcheck.hs small sample program which shows the trouble cases

View Article

Browsing latest articles
Browse All 18 View Live




Latest Images