This is so, because tcg_rn_exports is empty during the phases of compilation. Probable related issue: https://gitlab.haskell.org/ghc/ghc/issues/16506
An emergency solution would be to store RdrNames during parse stage and figure out the names afterwards using tcg_exports.