#3332: take n (take m list) returns [] for some m.
-------------------------+--------------------------------------------------
    Reporter:  fcamel    |        Owner:         
        Type:  bug       |       Status:  closed 
    Priority:  normal    |    Milestone:         
   Component:  Compiler  |      Version:  6.8.2  
    Severity:  normal    |   Resolution:  invalid
    Keywords:            |   Difficulty:  Unknown
    Testcase:            |           Os:  Linux  
Architecture:  x86       |  
-------------------------+--------------------------------------------------
Changes (by igloo):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => invalid

Comment:

 Thanks for the report. But actually, this is not a bug:

 On a 32bit machine, `(10^12) :: Int` is `-727379968`.

 This will give you `[1]`:
 {{{
 import Data.List

 take 1 (genericTake (10^12) [1..])
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3332#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to