Safe Haskell | None |
---|---|
Language | Haskell98 |
- browsePackages :: MonadLog m => [String] -> PackageDbStack -> m [PackageConfig]
- browsePackagesDeps :: MonadLog m => [String] -> PackageDbStack -> m (Deps PackageConfig)
- listModules :: MonadLog m => [String] -> PackageDbStack -> m [ModuleLocation]
- browseModules :: MonadLog m => [String] -> PackageDbStack -> [ModuleLocation] -> m [InspectedModule]
- browse :: MonadLog m => [String] -> PackageDbStack -> m [InspectedModule]
- browseDb :: MonadLog m => [String] -> PackageDbStack -> m [InspectedModule]
- withPackages :: MonadLog m => [String] -> (DynFlags -> GhcM a) -> m a
- withPackages_ :: MonadLog m => [String] -> GhcM a -> m a
- readPackage :: PackageConfig -> ModulePackage
- readPackageConfig :: PackageConfig -> PackageConfig
- ghcPackageDb :: PackageConfig -> IO PackageDb
- ghcModuleLocation :: PackageDb -> PackageConfig -> Module -> ModuleLocation
- packageDbCandidate :: FilePath -> IO (Maybe PackageDb)
- packageDbCandidate_ :: FilePath -> IO PackageDb
- packageConfigs :: GhcM [PackageConfig]
- packageDbModules :: GhcM [(PackageConfig, Module)]
- lookupModule_ :: DynFlags -> ModuleName -> [Module]
- module Control.Monad.Except
List all packages
browsePackages :: MonadLog m => [String] -> PackageDbStack -> m [PackageConfig] Source #
Browse packages
browsePackagesDeps :: MonadLog m => [String] -> PackageDbStack -> m (Deps PackageConfig) Source #
Get packages with deps
Scan cabal modules
listModules :: MonadLog m => [String] -> PackageDbStack -> m [ModuleLocation] Source #
browseModules :: MonadLog m => [String] -> PackageDbStack -> [ModuleLocation] -> m [InspectedModule] Source #
browse :: MonadLog m => [String] -> PackageDbStack -> m [InspectedModule] Source #
Browse modules, if third argument is True - browse only modules in top of package-db stack
browseDb :: MonadLog m => [String] -> PackageDbStack -> m [InspectedModule] Source #
Browse modules in top of package-db stack
Helpers
ghcPackageDb :: PackageConfig -> IO PackageDb Source #
ghcModuleLocation :: PackageDb -> PackageConfig -> Module -> ModuleLocation Source #
packageDbCandidate :: FilePath -> IO (Maybe PackageDb) Source #
Get package-db for package library directory Haskish way global-db - library is in pathlibpackage and there exists pathlibpackage.conf.d user-db - library is in cabal user directory package-db cabal-sandbox - library in ....cabal-sandbox...platform-ghc-verpackage then package-db is ....cabal-sandboxplatform-ghc-ver-package.conf.d stack (snapshots or .stack-work) - library in pathlibplatform-ghc-ver/package then package-db is path/pkgdb
packageDbModules :: GhcM [(PackageConfig, Module)] Source #
lookupModule_ :: DynFlags -> ModuleName -> [Module] Source #
module Control.Monad.Except