[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
results..
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
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fadsfac%2Enet%2Flink%2Easp%3Fcc%3DPAS075%2E5683%2E0%26clk%3D1%26creativeID%3D73753&_t=765559690&_r=Hotmail_email_tagline_sept07&_m=EXT
More information about the Haskell-Cafe
mailing list