summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T15568.hs
diff options
context:
space:
mode:
authorRoland Senn <rsx@bluewin.ch>2020-03-14 17:33:02 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-03-25 14:45:04 -0400
commit703221f408b023a1b3433938572e7b5c24b4af60 (patch)
tree505a0b419f288b73d2034e96d4b7f398a7488733 /testsuite/tests/ghci/scripts/T15568.hs
parent2643ba465cd2a133b6f495f34fc59cd1a6d23525 (diff)
downloadhaskell-703221f408b023a1b3433938572e7b5c24b4af60.tar.gz
Use export list of Main module in function TcRnDriver.hs:check_main (Fix #16453)
- Provide the export list of the `Main` module as parameter to the `compiler/typecheck/TcRnDriver.hs:check_main` function. - Instead of `lookupOccRn_maybe` call the function `lookupInfoOccRn`. It returns the list `mains_all` of all the main functions in scope. - Select from this list `mains_all` all `main` functions that are in the export list of the `Main` module. - If this new list contains exactly one single `main` function, then typechecking continues. - Otherwise issue an appropriate error message.
Diffstat (limited to 'testsuite/tests/ghci/scripts/T15568.hs')
0 files changed, 0 insertions, 0 deletions