[GHC] #15703: Significant compilation time blowup when refactoring singletons-heavy code