minimum [1 .. (10^7)]

Serge D. Mechveliani mechvel at botik.ru
Fri Sep 10 05:43:24 EDT 2004


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


More information about the Glasgow-haskell-users mailing list