stack-2.14.0: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageGHC2021

Stack.Setup

Synopsis

Documentation

setupEnv Source #

Arguments

:: NeedTargets 
-> BuildOptsCLI 
-> Maybe Text

Message to give user when necessary GHC is not available

-> RIO BuildConfig EnvConfig 

Modify the environment variables (like PATH) appropriately, possibly doing installation too

ensureCompilerAndMsys :: (HasBuildConfig env, HasGHCVariant env) => SetupOpts -> RIO env (CompilerPaths, ExtraDirs) Source #

Ensure both the compiler and the msys toolchain are installed and provide the PATHs to add if necessary

ensureDockerStackExe :: HasConfig env => Platform -> RIO env (Path Abs File) Source #

Ensure Docker container-compatible stack executable is downloaded

data SetupOpts Source #

Constructors

SetupOpts 

Fields

Instances

Instances details
Show SetupOpts Source # 
Instance details

Defined in Stack.Setup

defaultSetupInfoYaml :: String Source #

Default location of the stack-setup.yaml file

withNewLocalBuildTargets :: HasEnvConfig env => [Text] -> RIO env a -> RIO env a Source #

Some commands (script, ghci and exec) set targets dynamically see also the note about only local targets for rebuildEnv

Stack binary download

data StackReleaseInfo Source #

Information on a binary release of Stack

stackVersion :: Version Source #

Current Stack version

downloadStackReleaseInfo Source #

Arguments

:: (HasLogFunc env, HasPlatform env) 
=> Maybe String 
-> Maybe String 
-> Maybe String

optional version

-> RIO env StackReleaseInfo 

downloadStackExe Source #

Arguments

:: HasConfig env 
=> [(Bool, String)]

acceptable platforms

-> StackReleaseInfo 
-> Path Abs Dir

destination directory

-> Bool

perform PATH-aware checking, see #3232

-> (Path Abs File -> IO ())

test the temp exe before renaming

-> RIO env ()