Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Matthew Pickering's avatar
    34b44f7d
    error messages: Don't display ghci specific hints for missing packages · 34b44f7d
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    Tickets like #22884 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
    34b44f7d
    History
    error messages: Don't display ghci specific hints for missing packages
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    Tickets like #22884 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
Code owners
Assign users and groups as approvers for specific file changes. Learn more.