[Git][ghc/ghc][wip/andreask/revert-generics] 7 commits: Migrate `ghc-pkg` to use `OsPath` and `file-io`