Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions for the GHC package database.
Synopsis
- getGlobalDB :: (HasProcessContext env, HasLogFunc env) => WhichCompiler -> RIO env (Path Abs Dir)
- findGhcPkgField :: (HasProcessContext env, HasLogFunc env) => WhichCompiler -> [Path Abs Dir] -> String -> Text -> RIO env (Maybe Text)
- createDatabase :: (HasProcessContext env, HasLogFunc env) => WhichCompiler -> Path Abs Dir -> RIO env ()
- unregisterGhcPkgId :: (HasProcessContext env, HasLogFunc env) => WhichCompiler -> CompilerVersion CVActual -> Path Abs Dir -> GhcPkgId -> PackageIdentifier -> RIO env ()
- getCabalPkgVer :: (HasProcessContext env, HasLogFunc env) => WhichCompiler -> RIO env Version
- ghcPkgExeName :: WhichCompiler -> String
- ghcPkgPathEnvVar :: WhichCompiler -> Text
- mkGhcPackagePath :: Bool -> Path Abs Dir -> Path Abs Dir -> [Path Abs Dir] -> Path Abs Dir -> Text
Documentation
getGlobalDB :: (HasProcessContext env, HasLogFunc env) => WhichCompiler -> RIO env (Path Abs Dir) Source #
Get the global package database
:: (HasProcessContext env, HasLogFunc env) | |
=> WhichCompiler | |
-> [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) => WhichCompiler -> Path Abs Dir -> RIO env () Source #
Create a package database in the given directory, if it doesn't exist.
:: (HasProcessContext env, HasLogFunc env) | |
=> WhichCompiler | |
-> CompilerVersion CVActual | |
-> Path Abs Dir | package database |
-> GhcPkgId | |
-> PackageIdentifier | |
-> RIO env () |
getCabalPkgVer :: (HasProcessContext env, HasLogFunc env) => WhichCompiler -> RIO env Version Source #
Get the version of Cabal from the global package database.
ghcPkgExeName :: WhichCompiler -> String Source #
Get the name to use for "ghc-pkg", given the compiler version.
ghcPkgPathEnvVar :: WhichCompiler -> Text Source #
Get the environment variable to use for the package DB paths.