In general it may not be possible, but we could reduce a lot of code change if we could enable it for wf type families. https://github.com/IaFP/ghc/blob/wip/party-ctrs-ghc-9/compiler/GHC/Tc/Module.hs#L855