Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions for the GHC package database.
Synopsis
- getGlobalDB :: (HasProcessContext env, HasLogFunc env) => GhcPkgExe -> RIO env (Path Abs Dir)
- findGhcPkgField :: (HasProcessContext env, HasLogFunc env) => GhcPkgExe -> [Path Abs Dir] -> String -> Text -> RIO env (Maybe Text)
- createDatabase :: (HasProcessContext env, HasLogFunc env) => GhcPkgExe -> Path Abs Dir -> RIO env ()
- unregisterGhcPkgIds :: (HasProcessContext env, HasLogFunc env) => GhcPkgExe -> Path Abs Dir -> NonEmpty (Either PackageIdentifier GhcPkgId) -> RIO env ()
- ghcPkgPathEnvVar :: WhichCompiler -> Text
- mkGhcPackagePath :: Bool -> Path Abs Dir -> Path Abs Dir -> [Path Abs Dir] -> Path Abs Dir -> Text
Documentation
getGlobalDB :: (HasProcessContext env, HasLogFunc env) => GhcPkgExe -> RIO env (Path Abs Dir) Source #
Get the global package database
:: (HasProcessContext env, HasLogFunc env) | |
=> GhcPkgExe | |
-> [Path Abs Dir] | package databases |
-> String | package identifier, or GhcPkgId |
-> Text | |
-> RIO env (Maybe Text) |
Get the value of a field of the package.
createDatabase :: (HasProcessContext env, HasLogFunc env) => GhcPkgExe -> Path Abs Dir -> RIO env () Source #
Create a package database in the given directory, if it doesn't exist.
:: (HasProcessContext env, HasLogFunc env) | |
=> GhcPkgExe | |
-> Path Abs Dir | package database |
-> NonEmpty (Either PackageIdentifier GhcPkgId) | |
-> RIO env () |
unregister list of package ghcids, batching available from GHC 8.0.1, using GHC package id where available (from GHC 7.9)
ghcPkgPathEnvVar :: WhichCompiler -> Text Source #
Get the environment variable to use for the package DB paths.