stack-1.0.4.1: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Setup

Synopsis

Documentation

setupEnv Source

Arguments

:: (MonadIO m, MonadMask m, MonadLogger m, MonadReader env m, HasBuildConfig env, HasHttpManager env, HasTerminal env, HasReExec env, HasLogLevel env, HasGHCVariant env, MonadBaseControl IO m) 
=> Maybe Text

Message to give user when necessary GHC is not available

-> m EnvConfig 

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

ensureCompiler :: (MonadIO m, MonadMask m, MonadLogger m, MonadReader env m, HasConfig env, HasHttpManager env, HasTerminal env, HasReExec env, HasLogLevel env, HasGHCVariant env, MonadBaseControl IO m) => SetupOpts -> m (Maybe ExtraDirs) Source

Ensure compiler (ghc or ghcjs) is installed and provide the PATHs to add if necessary

getSystemCompiler :: (MonadIO m, MonadLogger m, MonadBaseControl IO m, MonadCatch m) => EnvOverride -> WhichCompiler -> m (Maybe (CompilerVersion, Arch)) Source

Get the version of the system compiler, if available

data SetupOpts Source

Constructors

SetupOpts 

Fields

soptsInstallIfMissing :: !Bool
 
soptsUseSystem :: !Bool
 
soptsWantedCompiler :: !CompilerVersion
 
soptsCompilerCheck :: !VersionCheck
 
soptsStackYaml :: !(Maybe (Path Abs File))

If we got the desired GHC version from that file

soptsForceReinstall :: !Bool
 
soptsSanityCheck :: !Bool

Run a sanity check on the selected GHC

soptsSkipGhcCheck :: !Bool

Don't check for a compatible GHC version/architecture

soptsSkipMsys :: !Bool

Do not use a custom msys installation on Windows

soptsUpgradeCabal :: !Bool

Upgrade the global Cabal library in the database to the newest version. Only works reliably with a stack-managed installation.

soptsResolveMissingGHC :: !(Maybe Text)

Message shown to user for how to resolve the missing GHC

soptsStackSetupYaml :: !FilePath

Location of the main stack-setup.yaml file

soptsGHCBindistURL :: !(Maybe String)

Alternate GHC binary distribution (requires custom GHCVariant)

Instances

defaultStackSetupYaml :: String Source

Default location of the stack-setup.yaml file