[GHC] #15081: Finite list becomes infinite after maping fractional function for high numbers

GHC ghc-devs at haskell.org
Wed May 16 19:40:47 UTC 2018


#15081: Finite list becomes infinite after maping fractional function for high
numbers
-------------------------------------+-------------------------------------
        Reporter:  Onsed             |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
                                     |  (amd64)
 Type of failure:  Incorrect result  |            Test Case:
  at runtime                         |  libraries/base/tests/enumNumeric
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D4650
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"4ffaf4b67773af4c72d92bb8b6c87b1a7d34ac0f/ghc" 4ffaf4b/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="4ffaf4b67773af4c72d92bb8b6c87b1a7d34ac0f"
 Improve numeric stability of numericEnumFrom for floating numbers

 Fixes #15081.

 Test Plan: cd libraries/base && make test TEST="enumNumeric"

 Reviewers: hvr, bgamari

 Reviewed By: bgamari

 Subscribers: dfeuer, simonpj, thomie, carter

 GHC Trac Issues: #15081

 Differential Revision: https://phabricator.haskell.org/D4650
 }}}

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


More information about the ghc-tickets mailing list