stack-1.7.1: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Setup

Contents

Synopsis

Documentation

setupEnv Source #

Arguments

:: (HasBuildConfig env, HasGHCVariant env) 
=> Maybe Text

Message to give user when necessary GHC is not available

-> RIO env EnvConfig 

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

ensureCompiler :: (HasConfig env, HasGHCVariant env) => SetupOpts -> RIO env (Maybe ExtraDirs, CompilerBuild, Bool) Source #

Ensure compiler (ghc or ghcjs) is 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

getSystemCompiler :: (HasProcessContext env, HasLogFunc env) => WhichCompiler -> RIO env (Maybe (CompilerVersion CVActual, Arch)) Source #

Get the version of the system compiler, if available

data SetupOpts Source #

Constructors

SetupOpts 

Fields

defaultSetupInfoYaml :: String Source #

Default location of the stack-setup.yaml file

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