[Haskell-beginners] Exception back trace

Paul Sargent psarge at gmail.com
Sun Dec 5 16:12:04 CET 2010


Wrong way to solve the problem in my opinion. Making source code modifications so that you can know which call to minimum got an empty list seems backwards.

At the very least we should be able to get a file & line number. Can't we?

(Just to be clear, I don't have a solution, but I've hit the same problem)

On 5 Dec 2010, at 14:36, Michael Snoyman wrote:

> You might want to try out monadloc[1] and control-monad-exception[2],
> which provide some monadic stack traces via a preprocessor.
> 
> Michael
> 
> [1] http://hackage.haskell.org/package/monadloc
> [2] http://hackage.haskell.org/package/control-monad-exception
> 
> On Sun, Dec 5, 2010 at 2:49 AM, Russ Abbott <russ.abbott at gmail.com> wrote:
>> Hi,
>> I am in the midst of debugging and got an exception:
>> 
>> *** Exception: Prelude.minimum: empty list
>> 
>> That's all it said.  There was no information about where the exception
>> occurred. Is it possible to ask for more information, preferably including a
>> stack trace?
>> Thanks.
>> 
>> -- Russ
>> 
>> _______________________________________________
>> Beginners mailing list
>> Beginners at haskell.org
>> http://www.haskell.org/mailman/listinfo/beginners
>> 
>> 
> 
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners




More information about the Beginners mailing list