Safe Haskell | None |
---|---|
Language | Haskell2010 |
Load dependencies for a project using `ghc-pkg`.
Synopsis
- runOrFail :: Text -> IO Text
- getDependencyByModule :: FilePath -> [Package] -> IO (Map ModuleName DependencyName)
Documentation
getDependencyByModule :: FilePath -> [Package] -> IO (Map ModuleName DependencyName) Source #
For the dependencies listed in the specified packages, load `ghc-pkg` and inspect the `exposed-modules` field. Return a map of module to dependency name.