[Haskell-cafe] Prelude.head: empty list

Kostiantyn Rybnikov k-bx at k-bx.com
Thu Mar 17 12:30:06 UTC 2016


Always using `headNote` from `safe` package works good enough usually.

On Fri, Mar 11, 2016 at 5:56 PM, Han Joosten <han.joosten.han at gmail.com>
wrote:

> In a rather large program I made some changes, and now I get the runtime
> error:
>
> ampersand.exe: Prelude.head: empty list
>
> 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?
>
> Thanks!
>
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160317/7c5bef87/attachment.html>


More information about the Haskell-Cafe mailing list