Maintainer | cabal-devel@haskell.org |
---|---|
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
UI for the sandboxing functionality.
Synopsis
- loadConfigOrSandboxConfig :: Verbosity -> GlobalFlags -> IO SavedConfig
- findSavedDistPref :: SavedConfig -> Flag FilePath -> IO FilePath
- updateInstallDirs :: Flag Bool -> SavedConfig -> SavedConfig
- getPersistOrConfigCompiler :: ConfigFlags -> IO (Compiler, Platform, ProgramDb)
Documentation
loadConfigOrSandboxConfig Source #
:: Verbosity | |
-> GlobalFlags | For |
-> IO SavedConfig |
Check which type of package environment we're in and return a
correctly-initialised SavedConfig
and a UseSandbox
value that indicates
whether we're working in a sandbox.
findSavedDistPref :: SavedConfig -> Flag FilePath -> IO FilePath Source #
Return the saved "dist/" prefix, or the default prefix.
updateInstallDirs :: Flag Bool -> SavedConfig -> SavedConfig Source #
getPersistOrConfigCompiler :: ConfigFlags -> IO (Compiler, Platform, ProgramDb) Source #
Try to read the most recently configured compiler from the
localBuildInfoFile
, falling back on configCompilerAuxEx
if it
cannot be read.