GHCi/Template Haskell: Don't panic on linker errors.
When the link editor is called by Linker.hs as part of loading a library and an error occurs GHCi panics. As a consequence users submit bug reports because the panic message tells them do do so.
The link editor process can fail because of missing libraries, failure to create a link file, missing linker program, etc., all of which are beyond the control of GHC and should not be considered a bug in GHC.
When the link editor fails
- an error message should be printed and GHC should terminate if the error is fatal.
- a warning (that could be silenced) should be issued in non-fatal cases.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.0.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Runtime System (Linker) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |