On 25 January 2005 16:04, S. Alexander Jacobson wrote:

> Ok.  I guessed I was producing a big expression
> of the form
> 
>    addToFM (addToFM (addToFM (addToFM (addToFM ...)
> 
> I tried to solve it by doing
> 
>    (addToFM $! fm) key val
> 
> But still got an error.  I then tried the same
> with the wrapper code, but still got the error.
> 
> Is there a way to profile stack usage using GHCi
> (without compiling) to find the problem?

+RTS -xt -RTS will include the stack in a heap profile.  See

  http://www.haskell.org/ghc/docs/latest/html/users_guide/prof-heap.html

It will show you the size of the stack over time, but not the contents
of the stack.

Cheers,
        Simon
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to