Remove GhcHint from TcRnNotInScope constructor
Ticket: #25874 (closed)
This is a tiny refactoring which:
- removes
GhcHint
/ImportError
fields from some constructors ofTcRnMessage
, using theTcRnMessageDetailed
mechanism instead to report this information:- removes the
GhcHint
andImportErrors
fields fromTcRnNotInScope
- removes the
GhcHint
field fromTcRnTermNameInType
- removes the
- ensures that we only include these hints and import errors when the
-fhelpful-errors
flag is turned on
Edited by sheaf