#1998: Stricter enumFrom instance for Integer, to match Int
-------------------------------+--------------------------------------------
    Reporter:  dons            |       Owner:                     
        Type:  bug             |      Status:  new                
    Priority:  normal          |   Milestone:  6.8.3              
   Component:  libraries/base  |     Version:  6.8.2              
    Severity:  normal          |    Keywords:  Integer, strictness
  Difficulty:  Easy (1 hr)     |    Testcase:                     
Architecture:  Multiple        |          Os:  Multiple           
-------------------------------+--------------------------------------------
 Stack overflow for enumFrom :: Integer (but not enumFromTo nor for Int).

 {{{
 main = print (head (drop 1000000 [1 .. ]))

 Stack space overflow: current size 8388608 bytes.
 Use `+RTS -Ksize' to increase it.
 }}}

 Due to lazy accumulator for Integer enumFrom.

 Patch and library ticket here:

     http://hackage.haskell.org/trac/ghc/ticket/1997

 It looks like it could be a GHC bug report instead of a library proposal
 (similar to the buildr/fold failures), so reporting it as a GHC issue.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1998>
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

Reply via email to