I wrote recently
> Prelude> minimum [1 .. (10^4)]
> 1
> Prelude> minimum [1 .. (10^6)]
> *** Exception: stack overflow
But if the code for [1 .. (10^...)]
is compiled, and compiled by -O, then this improves.
So, I do not know, so far, whether GHC is in any trouble here.
-----------------
Serge Mechveliani
mechvel at botik.ru