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/typecheck/should_fail | |
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/typecheck/should_fail')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail082.stderr | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail082.stderr b/testsuite/tests/typecheck/should_fail/tcfail082.stderr index 31317b2c42..f72d4e04c4 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail082.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail082.stderr @@ -1,12 +1,12 @@ -tcfail082.hs:2:1: error: - Could not find module ‘Data82’ +tcfail082.hs:2:1: error: [GHC-87110] + Could not find module ‘Data82’. Use -v (or `:set -v` in ghci) to see a list of the files searched for. -tcfail082.hs:3:1: error: - Could not find module ‘Inst82_1’ +tcfail082.hs:3:1: error: [GHC-87110] + Could not find module ‘Inst82_1’. Use -v (or `:set -v` in ghci) to see a list of the files searched for. -tcfail082.hs:4:1: error: - Could not find module ‘Inst82_2’ +tcfail082.hs:4:1: error: [GHC-87110] + Could not find module ‘Inst82_2’. Use -v (or `:set -v` in ghci) to see a list of the files searched for. |