[Git][ghc/ghc][wip/T25992] 17 commits: Refactor handling of imported COMPLETE pragmas