WIP: Fix #12509: ghci -XSafe fails in an inscrutable way
Improve the processing for Safe Haskell in compiler/rename/RnEnv.hs:lookupQualifiedNameGHCi .
To check SafeHaskell-compatibility of a qualified name, we no longer check the
DynFlag safeDirectImpsReq. We compare now the value of DynFlags.safeHaskell
with the mi-trust value of the corresponding compiler/main/HscTypes.hs:ModIface
record.
Edited by Ben Gamari