cabal-install-3.8.1.0: The command-line interface for Cabal and Hackage.
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Distribution.Client.Sandbox

Description

UI for the sandboxing functionality.

Synopsis

Documentation

loadConfigOrSandboxConfig Source #

Arguments

:: Verbosity 
-> GlobalFlags

For --config-file and --sandbox-config-file.

-> 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.

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.