stack-2.1.3.1: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Setup

Contents

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 :: (HasConfig 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
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

stackVersion :: Version Source #

Current Stack version

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 ()