Extending ghc-pkg to handle installed package IDs