[Haskell-beginners] finding the exact instance of a function causing an error
Julian Arni
jkarni at mit.edu
Thu Sep 26 00:05:26 CEST 2013
Try running the program with the ghci debugger and
-fbreak-on-error<http://www.haskell.org/ghc/docs/7.6.2/html/users_guide/ghci-debugger.html#ghci-debugger-exceptions>
.
On Wed, Sep 25, 2013 at 5:57 PM, Nathan Hüsken <nathan.huesken at posteo.de>wrote:
> Hey,
>
> I have a program, that, when I run it fails with: Main: Prelude.tail:
> empty list
>
> Can I somehow find out which exat instance of tail causes this error?
> I tried compiling with -prof and running with +RTX -xc, which gives me:
>
> *** Exception (reporting due to +RTS -xc): (THUNK_2_0), stack trace:
> GHC.List.CAF
> --> evaluated by: SYSTEM.SYSTEM
> *** Exception (reporting due to +RTS -xc): (THUNK_2_0), stack trace:
> GHC.List.CAF
> *** Exception (reporting due to +RTS -xc): (THUNK_2_0), stack trace:
> GHC.List.CAF
>
> Does not really help me ...
>
> Thanks!
> Nathan
> ______________________________**_________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/**mailman/listinfo/beginners<http://www.haskell.org/mailman/listinfo/beginners>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130925/e87612bf/attachment.htm>
More information about the Beginners
mailing list