Convert interface file loading errors into proper diagnostics
This patch converts all the errors to do with loading interface files into proper structured diagnostics. * DriverMessage: Sometimes in the driver we attempt to load an interface file so we embed the IfaceMessage into the DriverMessage. * TcRnMessage: Most the time we are loading interface files during typechecking, so we embed the IfaceMessage This patch also removes the TcRnInterfaceLookupError constructor which is superceded by the IfaceMessage, which is now structured compared to just storing an SDoc before.
parent
e1fb56b2
Branches wip/ttg-booleanformula
No related tags found
Pipeline #64901 passed
Stage: tool-lint
Stage: quick-build
Stage: full-build
Stage: packaging
Stage: testing
Showing
- compiler/GHC/Driver/Config/Diagnostic.hs 12 additions, 2 deletionscompiler/GHC/Driver/Config/Diagnostic.hs
- compiler/GHC/Driver/Config/Tidy.hs 7 additions, 1 deletioncompiler/GHC/Driver/Config/Tidy.hs
- compiler/GHC/Driver/Errors.hs 6 additions, 6 deletionscompiler/GHC/Driver/Errors.hs
- compiler/GHC/Driver/Errors/Ppr.hs 7 additions, 2 deletionscompiler/GHC/Driver/Errors/Ppr.hs
- compiler/GHC/Driver/Errors/Types.hs 8 additions, 10 deletionscompiler/GHC/Driver/Errors/Types.hs
- compiler/GHC/Driver/Make.hs 3 additions, 2 deletionscompiler/GHC/Driver/Make.hs
- compiler/GHC/Driver/MakeFile.hs 3 additions, 4 deletionscompiler/GHC/Driver/MakeFile.hs
- compiler/GHC/Iface/Errors.hs 45 additions, 212 deletionscompiler/GHC/Iface/Errors.hs
- compiler/GHC/Iface/Errors/Ppr.hs 353 additions, 0 deletionscompiler/GHC/Iface/Errors/Ppr.hs
- compiler/GHC/Iface/Errors/Types.hs 130 additions, 0 deletionscompiler/GHC/Iface/Errors/Types.hs
- compiler/GHC/Iface/Load.hs 49 additions, 53 deletionscompiler/GHC/Iface/Load.hs
- compiler/GHC/Iface/Recomp.hs 10 additions, 4 deletionscompiler/GHC/Iface/Recomp.hs
- compiler/GHC/IfaceToCore.hs 13 additions, 9 deletionscompiler/GHC/IfaceToCore.hs
- compiler/GHC/Linker/Loader.hs 5 additions, 1 deletioncompiler/GHC/Linker/Loader.hs
- compiler/GHC/Runtime/Loader.hs 11 additions, 3 deletionscompiler/GHC/Runtime/Loader.hs
- compiler/GHC/Tc/Errors/Ppr.hs 19 additions, 8 deletionscompiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs 9 additions, 9 deletionscompiler/GHC/Tc/Errors/Types.hs
- compiler/GHC/Tc/Gen/Splice.hs 1 addition, 1 deletioncompiler/GHC/Tc/Gen/Splice.hs
- compiler/GHC/Tc/Utils/Backpack.hs 8 additions, 8 deletionscompiler/GHC/Tc/Utils/Backpack.hs
- compiler/GHC/Tc/Utils/Env.hs 18 additions, 32 deletionscompiler/GHC/Tc/Utils/Env.hs
Loading
Please register or sign in to comment