Better information about the location of exceptions
From Frederik Eaton, on glasgow-haskell-bugs:
I think it would be a good idea to print instructions for getting more information when a program fails with a pattern match or other error.
Rather than
foo: Prelude.undefined
it should say
foo: Prelude.undefined
For information about the location of this error, recompile with "-prof -auto-all" and run with "+RTS -xc -RTS"
Also, maybe these instructions aren't enough? When I do the above, it just prints
<GHC.Err.CAF><GHC.Err.CAF><GHC.Err.CAF><GHC.Err.CAF>foo: Prelude.undefined
which isn't what I was looking for... Am I forgetting an option or something?
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.4.2 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Runtime System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | frederik@a5.repetae.net |
| Operating system | Unknown |
| Architecture | Unknown |