stack-0.1.0.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Setup

Synopsis

Documentation

setupEnv :: (MonadIO m, MonadMask m, MonadLogger m, MonadReader env m, HasBuildConfig env, HasHttpManager env, MonadBaseControl IO m) => m EnvConfig Source

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

ensureGHC :: (MonadIO m, MonadMask m, MonadLogger m, MonadReader env m, HasConfig env, HasHttpManager env, MonadBaseControl IO m) => SetupOpts -> m (Maybe [FilePath]) Source

Ensure GHC is installed and provide the PATHs to add if necessary

data SetupOpts Source

Constructors

SetupOpts 

Fields

soptsInstallIfMissing :: !Bool
 
soptsUseSystem :: !Bool
 
soptsExpected :: !Version
 
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

Instances