haskell-cafe@haskell.org
[Top] [All Lists]

Re: [Haskell-cafe] Prelude.undefined

Subject: Re: [Haskell-cafe] Prelude.undefined
From: Gwern Branwen
Date: Wed, 3 Mar 2010 11:33:36 -0500
On Wed, Mar 3, 2010 at 10:56 AM, Tom Hawkins <tomahawkins@xxxxxxxxx> wrote:
> On Wed, Mar 3, 2010 at 7:24 AM, Alexander Dunlap
> <alexander.dunlap@xxxxxxxxx> wrote:
>> On Tue, Mar 2, 2010 at 9:06 PM, Tom Hawkins <tomahawkins@xxxxxxxxx> wrote:
>>> How do I track down an reference to an undefined value? ÂMy program
>>> must not be using a library correctly because the program makes no
>>> direct use of 'undefined'. ÂRunning with +RTS -xc yields:
>>>
>>
>> While the debugger, etc., are very useful tools, I find that often the
>> easiest way to track down this sort of bug is to test your code
>> function-by-function.
>
> The debugger was not that helpful, so I may have to resort to this.
>
> Is there any work being done to improve reporting for these type of
> errors? ÂIt seems to be a fairly common problem.

You try the Interlude? http://hackage.haskell.org/package/interlude

-- 
gwern
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>