-
f99e4bae
by Simon Hengel at 2025-08-09T16:50:20+07:00
Refactoring: Don't misuse `MCDiagnostic` for lint messages
`MCDiagnostic` is meant to be used for compiler diagnostics.
Any code that creates `MCDiagnostic` directly, without going through
`GHC.Driver.Errors.printMessage`, side steps `-fdiagnostics-as-json`
(see e.g. !14475, !14492 !14548).
To avoid this in the future I want to control more narrowly who creates
`MCDiagnostic` (see #24113).
Some parts of the compiler use `MCDiagnostic` purely for formatting
purposes, without creating any real compiler diagnostics. This change
introduces a helper function, `formatDiagnostic`, that can be used in
such cases instead of constructing `MCDiagnostic`.
-
a5393c7b
by Simon Hengel at 2025-08-09T16:50:40+07:00
Rename MCDiagnostic to UnsafeMCDiagnostic
-
3b67a005
by Simon Hengel at 2025-08-09T16:50:40+07:00
Remove -ddump-json (fixes #24113)
-
e06295d3
by Simon Hengel at 2025-08-09T16:50:40+07:00
Add SrcSpan to MCDiagnostic
-
8c0d0320
by Simon Hengel at 2025-08-09T16:50:40+07:00
Refactoring: More consistently use logOutput, logInfo, fatalErrorMsg
-
e61d74f4
by Simon Hengel at 2025-08-09T16:50:40+07:00
Get rid of mkLocMessage
-
26fe025d
by Simon Hengel at 2025-08-09T16:50:40+07:00
Add Message data type
-
0fe6bd7f
by Simon Hengel at 2025-08-09T16:50:40+07:00
Get rid of MessageClass
-
8e45d9f3
by Simon Hengel at 2025-08-09T16:50:40+07:00
Rename DiagnosticMessage to GenericDiagnosticMessage
-
42b5dedb
by Simon Hengel at 2025-08-09T16:50:40+07:00
Remove JSON logging