diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2021-03-04 18:05:14 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-03-09 18:52:32 -0500 |
commit | 8fe274e27b9bd42c68e931da875d3f8e9c20e53f (patch) | |
tree | 4776c24d11989f8563346820cddd9014f7d3c1e3 /testsuite/tests/typecheck/should_fail/tcfail199.stderr | |
parent | aaa5fc21af8dda26bf6c497d1036833225c94fa1 (diff) | |
download | haskell-8fe274e27b9bd42c68e931da875d3f8e9c20e53f.tar.gz |
Fixes to dealing with the export of main
It's surprisingly tricky to deal with 'main' (#19397). This
patch does quite bit of refactoring do to it right. Well,
more-right anyway!
The moving parts are documented in GHC.Tc.Module
Note [Dealing with main]
Some other oddments:
* Rename tcRnExports to rnExports; no typechecking here!
* rnExports now uses checkNoErrs rather than failIfErrsM;
the former fails only if rnExports itself finds errors
* Small improvements to tcTyThingCategory, which ultimately
weren't important to the patch, but I've retained as
a minor improvement.
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail199.stderr')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail199.stderr | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail199.stderr b/testsuite/tests/typecheck/should_fail/tcfail199.stderr index 50fc8e5f44..5ef1ebab33 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail199.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail199.stderr @@ -4,5 +4,4 @@ tcfail199.hs:5:1: error: with: IO t0 Expected: IO t0 Actual: String - • In the expression: main - When checking the type of the IO action ‘main’ + • When checking the type of the IO action ‘main’ |