Well I recompiled but now I don&#39;t anymore have the input data to reproduce the problem. However if I hit control-c during the runtime, i get a very nice, and very big, stack, so i think it would work. So, great! Just be sure to use ghc 7.4+.<br>
<br>emmanuel<br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 6:32 PM, Emmanuel Touzery <span dir="ltr">&lt;<a href="mailto:etouzery@gmail.com" target="_blank">etouzery@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Well I tried and it displays the same with GHC 7.4.1.<br><br>However this is the output with GHC 7.0.4:<br>&lt;GHC.List.CAF&gt;stack: Prelude.head: empty list<br><br>So this is supported from 7.4 onwards (well maybe 7.2, I guess that version existed).<br>

<br>So there are all the chances that with GHC 7.4.1 I would get a proper stack for my problem. I&#39;ll try it soon but I must reinstall all the libraries with profiling on the computer on which I have 7.4.1...<span class="HOEnZb"><font color="#888888"><br>
<br>emmanuel<br>
<br></font></span><div class="gmail_quote"><div><div class="h5">On Thu, Nov 8, 2012 at 1:08 PM, Ozgur Akgun <span dir="ltr">&lt;<a href="mailto:ozgurakgun@gmail.com" target="_blank">ozgurakgun@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
fwiw, I am getting a stack trace with 7.6.1.<div><br></div><div><font face="courier new, monospace">-- stack.hs</font></div><div><div><font face="courier new, monospace">main = print $ foo [1]</font></div><div><font face="courier new, monospace">foo xs = bar xs ++ bar xs</font></div>



<div><font face="courier new, monospace">bar (x:xs) = [x, head xs]</font></div></div><div><br></div><div>$ ghc -prof -auto-all -rtsopts stack.hs<br></div><div><br></div><div>$ ./stack +RTS -xc</div><div><div>*** Exception (reporting due to +RTS -xc): (THUNK_2_0), stack trace: </div>



<div>  GHC.List.CAF</div><div>  --&gt; evaluated by: Main.bar,</div><div>  called from Main.foo,</div><div>  called from Main.main,</div><div>  called from Main.CAF</div><div>  --&gt; evaluated by: Main.main,</div><div>  called from Main.CAF</div>



<div>stack: Prelude.head: empty list</div></div><span><font color="#888888"><div><br></div><div><br></div><div class="gmail_extra"><div><br></div>-- <br>Ozgur Akgun<br>
</div>
</font></span><br></div></div><div class="im">_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
<br></div></blockquote></div><br>
</blockquote></div><br>