[GHC] #15081: Finite list becomes infinite after maping fractional function for high numbers
GHC
ghc-devs at haskell.org
Wed Aug 22 13:00:28 UTC 2018
#15081: Finite list becomes infinite after maping fractional function for high
numbers
-------------------------------------+-------------------------------------
Reporter: Onsed | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.8.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 bgamari):
I know that this is probably going to be an unpopular point-of-view but I
would argue that we should consider just dropping the `Enum` instance on
floating point types. As was stated earlier, enumerating floating point
numbers is inherently fragile. I'm sure removing the instance would break
a non-trivial amount of code, but arguably that code is broken anyways.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15081#comment:15>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list