Safe Haskell | None |
---|---|
Language | Haskell2010 |
Setting the package database to use when compiling modules. The daemon must have one single package database that cannot be changed after a package is loaded using that package database. Available package databases are the cabal global, the cabal sandbox, the stack or one that had been explicitely set by a file path.
- data PackageDB
- = DefaultDB
- | CabalSandboxDB
- | StackDB
- | ExplicitDB {
- packageDBPath :: [FilePath]
- decidePkgDB :: [FilePath] -> IO (Maybe PackageDB)
- packageDBLoc :: PackageDB -> FilePath -> IO [FilePath]
- detectAutogen :: FilePath -> PackageDB -> IO (Maybe FilePath)
Documentation
Possible package database configurations.
DefaultDB | Use the global cabal package database (like when using ghc). |
CabalSandboxDB | Use the sandboxed cabal package database. |
StackDB | Use the stack package databases (local and snapshot). |
ExplicitDB | Set the package database explicitely. |
|
decidePkgDB :: [FilePath] -> IO (Maybe PackageDB) Source #
Decide which type of project we are dealing with based on the package folders. Should only be invoked if the user did not select the project-type.