[Haskell-cafe] RE: simple function: stack overflow in hugs vs
nonein ghc
Claus Reinke
claus.reinke at talk21.com
Mon Sep 24 08:05:24 EDT 2007
> 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.
this thread might be relevant:
http://www.haskell.org/pipermail/hugs-bugs/2007-June/001815.html
http://www.haskell.org/pipermail/hugs-bugs/2007-June/001816.html
http://www.haskell.org/pipermail/hugs-bugs/2007-June/001817.html
claus
More information about the Haskell-Cafe
mailing list