[GHC] #15081: Finite list becomes infinite after maping fractional function for high numbers
GHC
ghc-devs at haskell.org
Thu May 3 16:06:42 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 sighingnow):
This ticket should be fixed by Phab:D4650, by using an increment
accumulator to get the next enumerated number rather than adding 1 to
previous number at every run.
For more related discussion about the implementation and the result the
benchmark, see Phab:D4650, and `Note [Numeric Stability of Enumerating
Floating Numbers]` in base/GHC/Real.hs.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15081#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list