[Haskell-cafe] Printing call site for partial functions

Ozgur Akgun ozgurakgun at gmail.com
Wed Apr 25 18:28:36 CEST 2012


On 25 April 2012 16:36, Michael Snoyman <michael at snoyman.com> wrote:

>    Prelude.head: empty list

Recent versions of GHC actually generate a very helpful stack trace, if the
program is compiled with profiling turned on and run with -xc.

See: http://community.haskell.org/~simonmar/slides/HIW11.pdf(Ironically
titled "Prelude.head: empty list")

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120425/3b757f56/attachment.htm>

More information about the Haskell-Cafe mailing list