Skip to content

Fix #17832: Weird handling of exports named main in 8.10-rc1

Roland Senn requested to merge RolandSenn/ghc:T17832 into master

Switching from lookupGlobalOccRn_maybe to lookupInfoOccRn to check whether a main function is in scope. Unfortunately lookupGlobalOccRn_maybe complains if there are multiple main functions in scope.

Merge request reports