#3332: take n (take m list) returns [] for some m.
-------------------+--------------------------------------------------------
Reporter: fcamel | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.8.2 | Severity: normal
Keywords: | Testcase:
Os: Linux | Architecture: x86
-------------------+--------------------------------------------------------
See the example below. I think the second output should be [1], too.
I also tried ghc and runghc, and the results were the same.
{{{
ghci> take 1 (take (10^11) [1..])
[1]
it :: [Integer]
ghci> take 1 (take (10^12) [1..])
[]
it :: [Integer]
ghci> take 1 (take (10^13) [1..])
[1]
it :: [Integer]
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3332>
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