[GHC] #9936: Data.Fixed truncates 5.17 to 5.16

GHC ghc-devs at haskell.org
Sat May 20 20:44:33 UTC 2017


#9936: Data.Fixed truncates 5.17 to 5.16
-------------------------------------+-------------------------------------
        Reporter:  singpolyma        |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  libraries/base    |              Version:  7.6.3
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #9231, #9240      |  Differential Rev(s):  Phab:D1693
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * cc: core-libraries-committee@… (added)


Comment:

 Hmm, this is rather tricky. On one hand, I agree with you that rounding
 seems sensible at first glance; on the other hand, I worry about what
 might break if we change this beneath users' feet.

 Perhaps the Core Libraries Committee should weigh in on this.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9936#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list