[Haskell-cafe] Re: Haskell stacktrace

Peter Hercek phercek at gmail.com
Tue Sep 9 18:22:49 EDT 2008

Justin Bailey wrote:
> 2008/9/9 Pieter Laeremans <pieter at laeremans.org>:
>> What 's the best equivalent haskell approach ?
>> thanks in advance,
>> Pieter
> The preferred approach is to look at your code, figure out where you
> are using tail (or could be calling something that uses tail) and use
> the "trace" function to output logging info. 

To find the specific tail call:

check the description for option -xc

Btw, is there any chance ghci debugger would ever print stack.
  It would be fine to see it in the same way as it exists
  when executing code ... I'm not interested in the stack as
  it would look if the program would not be lazy.


More information about the Haskell-Cafe mailing list