Skip to content

error messages: Don't display ghci specific hints for missing packages

Matthew Pickering requested to merge wip/t22884 into master

Tickets like #22884 (closed) suggest that it is confusing that GHC used on the command line can suggest options which only work in GHCi.

This ticket uses the error message infrastructure to override certain error messages which displayed GHCi specific information so that this information is only showed when using GHCi.

The main annoyance is that we mostly want to display errors in the same way as before, but with some additional information. This means that the error rendering code has to be exported from the Iface/Errors/Ppr.hs module.

I am unsure about whether the approach taken here is the best or most maintainable solution.

Fixes #22884 (closed)

Edited by Matthew Pickering

Merge request reports