[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:
http://haskell.org/ghc/docs/latest/html/users_guide/runtime-control.html#rts-options-debugging

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.

Peter.



More information about the Haskell-Cafe mailing list