[Haskell-cafe] RE: simple function: stack overflow in hugs vs none in ghc

john lask jvlask at hotmail.com
Mon Sep 24 07:27:34 EDT 2007

I agree with your analysis.

if the following is tried in hugs then ghc you will obtain two different 

return (repeat 'a') >>= \ x -> print $ span (const True) x

with hugs you will get a stack error, in ghc it executes in constant space, 
i.e. indefinitely. In essenece the above example does exactly the same as my 
ealier code.

Advertisement: Need a Hand? Use Yellow.com.au 

More information about the Haskell-Cafe mailing list