#1997: Stricter enumFrom instance for Integer, to match Int
----------------------------+-----------------------------------------------
Reporter: dons | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.10 branch
Component: libraries/base | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Difficulty: Easy (1 hr)
Testcase: | Architecture: Multiple
Os: Multiple |
----------------------------+-----------------------------------------------
Changes (by simonmar):
* milestone: Not GHC => 6.10 branch
Comment:
Note that this was reported already in #1097, but it got forgotten
probably because it has a milestone of "Not GHC" and no deadline.
The Haskell 98 report has a bug (already documented in
[http://haskell.org/definition/haskell98-revised-bugs.html]) in that the
reference implementation of the `Enum` class for `Float` and `Double` is
lazy.
I suggest we do as Don suggests, and make all the numeric types behave
consistently with respect to strictness of `enumFrom*`.
(re-milestoning to 6.10 so we don't forget)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1997#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs