Maintainer | [email protected] |
---|---|
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Distribution.Client.Sandbox
Description
UI for the sandboxing functionality.
Synopsis
- loadConfigOrSandboxConfig :: Verbosity -> GlobalFlags -> IO SavedConfig
- findSavedDistPref :: SavedConfig -> Flag (SymbolicPath Pkg (Dir Dist)) -> IO (SymbolicPath Pkg (Dir Dist))
- updateInstallDirs :: Flag Bool -> SavedConfig -> SavedConfig
- getPersistOrConfigCompiler :: ConfigFlags -> IO (Compiler, Platform, ProgramDb)
Documentation
loadConfigOrSandboxConfig Source #
Arguments
:: 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 (SymbolicPath Pkg (Dir Dist)) -> IO (SymbolicPath Pkg (Dir Dist)) 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.