<div class="gmail_extra">Hi,<br><br><div class="gmail_quote">On 25 April 2012 16:36, Michael Snoyman <span dir="ltr">&lt;<a href="mailto:michael@snoyman.com" target="_blank">michael@snoyman.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div id=":3za">   Prelude.head: empty list<br></div></blockquote></div><div class="gmail_extra"><br></div>Recent versions of GHC actually generate a very helpful stack trace, if the program is compiled with profiling turned on and run with -xc.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">See: <a href="http://community.haskell.org/~simonmar/slides/HIW11.pdf">http://community.haskell.org/~simonmar/slides/HIW11.pdf</a> (Ironically titled &quot;Prelude.head: empty list&quot;)<br>

<br>HTH,</div><div class="gmail_extra">Ozgur<br>
</div><div class="gmail_extra"><br></div>