Structured GHCi Errors (#23338)
This MR aims to make the error reporting and printing structured. This includes adding error codes and a more uniform way to print/display the errors. Both of these reuse/adjust existing infrastructure in the GHC codebase to avoid duplications.
TODO:
-
Rebase and resolve merge conflicts -
Adjust tests -
Remove / Edit TODOs in code -
Add Constructors for remaining throwGhc
/hPutStrLn stderr
Fixes #23338
Edited by Jade