[Haskell-beginners] Exception back trace

Brandon S Allbery KF8NH allbery at ece.cmu.edu
Sun Dec 5 18:02:51 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/5/10 10:12 , Paul Sargent wrote:
> 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?

Problem is that lazy evaluation makes the whole notion fuzzy; the error is
likely to be triggered in a thunk at a location related to the error only by
the fact that it forced the thunk to be evaluated.

- -- 
brandon s. allbery     [linux,solaris,freebsd,perl]      allbery at kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university      KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz7xbsACgkQIn7hlCsL25WbkACfRVYSyaif/VU9GOnVfCr+SOHX
9p0AoK7t/Hks7d0LaWJuwRHIXYeV/5Hs
=iO36
-----END PGP SIGNATURE-----



More information about the Beginners mailing list