diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2023-03-14 17:34:30 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-04-18 10:31:02 -0400 |
commit | 5e1d33d7a428965c7024290cebb3d77b84230169 (patch) | |
tree | 8b9a35d5c0905ad7a67cd588b7fd991cb783b1a3 /testsuite/tests/safeHaskell | |
parent | 1036481824fed7f8d5c9f70816b3dadd22098e42 (diff) | |
download | haskell-5e1d33d7a428965c7024290cebb3d77b84230169.tar.gz |
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.
Diffstat (limited to 'testsuite/tests/safeHaskell')
-rw-r--r-- | testsuite/tests/safeHaskell/safeLanguage/SafeLang07.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/safeHaskell/safeLanguage/SafeLang07.stderr b/testsuite/tests/safeHaskell/safeLanguage/SafeLang07.stderr index acfb8de460..7d26176149 100644 --- a/testsuite/tests/safeHaskell/safeLanguage/SafeLang07.stderr +++ b/testsuite/tests/safeHaskell/safeLanguage/SafeLang07.stderr @@ -2,6 +2,6 @@ SafeLang07.hs:2:14: warning: -XGeneralizedNewtypeDeriving is not allowed in Safe Haskell; ignoring -XGeneralizedNewtypeDeriving -SafeLang07.hs:15:1: error: - Could not find module ‘SafeLang07_A’ +SafeLang07.hs:15:1: error: [GHC-87110] + Could not find module ‘SafeLang07_A’. Use -v (or `:set -v` in ghci) to see a list of the files searched for. |