If a main module doesn't contain a header, we omit the check whether the main module is exported. With this patch GHC, GHCi and runghc again use the same code to check whether the main module is exported.
If a main module doesn't contain a header, we omit the check whether the main module is exported. With this patch GHC, GHCi and runghc again use the same code to check whether the main module is exported.