constant space `minimum'

Serge D. Mechveliani mechvel at
Fri Sep 10 05:26:21 EDT 2004

Dear GHC developers,

The library functions like  minimum, maximum,  
should perform in a constant space: probably, it is easy to write
them his way.
And  ghc-6.2.2-pre  shows

  Prelude> minimum [1 .. (10^4)]

  Prelude> minimum [1 .. (10^6)]

  *** Exception: stack overflow

What do you think of this, please?

Serge Mechveliani
mechvel at

More information about the Glasgow-haskell-users mailing list