[GHC] #14391: Make the simplifier independent of the typechecker