New fix for #11647. Avoid side effects like #17171

Authored by RolandSenn on Sep 25 2019, 2:39 AM.

Description

New fix for Trac #11647. Avoid side effects like Trac #17171

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 use the same code.

(cherry picked from commit 93f02b6223b8fc4d85ece389ac0520ee9cc20f2f)

Details

Committed
bgamariSun, Nov 3, 2:24 PM
Parents
rGHC510360081636: Don't skip validity checks for built-in classes (#17355)
Branches
Unknown
Tags
Unknown