[Haskell-cafe] Stack Overflow, tail recursion and CPS

Günther Schmidt redcom at fedoms.com
Wed Jan 14 12:21:51 EST 2009


Hi all,

I get a stack overflow when I want to insert a huge, lazy list into a Map.

I have changed the insertion algo to use foldl to make it tail-recursive  
but still get a stack overflow as the "insert" remains lazy.

Could CPS be a solution in these cases?

Günther



More information about the Haskell-Cafe mailing list