[Haskell-cafe] Re: Diagnosing stack overflow

Justin Bailey jgbailey at gmail.com
Fri Aug 17 11:22:27 EDT 2007

On 8/17/07, apfelmus <apfelmus at quantentunnel.de> wrote:

> Extracting the head and tail of  ss  with a let statement could lead to
>   a huge unevaluated expression like
>    rest = tail (tail (tail (...)))

Even though they are probably forced, would breaking the head and tail
apart via pattern-matching or a case statement avoid building up that
unevaluated expression?


More information about the Haskell-Cafe mailing list