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.
Showing
- compiler/GHC/Driver/Config/Diagnostic.hs 12 additions, 2 deletionscompiler/GHC/Driver/Config/Diagnostic.hs
- compiler/GHC/Driver/Config/Tidy.hs 4 additions, 11 deletionscompiler/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 38 additions, 221 deletionscompiler/GHC/Iface/Errors.hs
- compiler/GHC/Iface/Errors/Ppr.hs 366 additions, 0 deletionscompiler/GHC/Iface/Errors/Ppr.hs
- compiler/GHC/Iface/Errors/Types.hs 90 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 12 additions, 9 deletionscompiler/GHC/IfaceToCore.hs
- compiler/GHC/Linker/Loader.hs 5 additions, 1 deletioncompiler/GHC/Linker/Loader.hs
- compiler/GHC/Runtime/Loader.hs 12 additions, 3 deletionscompiler/GHC/Runtime/Loader.hs
- compiler/GHC/Tc/Errors/Ppr.hs 13 additions, 8 deletionscompiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs 7 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 9 additions, 8 deletionscompiler/GHC/Tc/Utils/Backpack.hs
- compiler/GHC/Tc/Utils/Env.hs 21 additions, 32 deletionscompiler/GHC/Tc/Utils/Env.hs
Loading
Please register or sign in to comment