<div dir="ltr">Always using `headNote` from `safe` package works good enough usually.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 11, 2016 at 5:56 PM, Han Joosten <span dir="ltr"><<a href="mailto:han.joosten.han@gmail.com" target="_blank">han.joosten.han@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">In a rather large program I made some changes, and now I get the runtime error:<div><br></div><div>ampersand.exe: Prelude.head: empty list<br></div><div><br></div><div>Of course I know that head is partial, and should be used with care. It is used many times (we have 100+ modules in the program). Is there an elegant way to get some information about where the specific call to head is being made?</div><div><br></div><div>Thanks!</div><div><br></div><div><br></div><div><br></div></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>