stack-2.1.3.1: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Constants

Description

Constants used throughout the project.

Synopsis

Documentation

buildPlanDir Source #

Arguments

:: Path Abs Dir

Stack root

-> Path Abs Dir 

Path where build plans are stored.

buildPlanCacheDir Source #

Arguments

:: Path Abs Dir

Stack root

-> Path Abs Dir 

Path where binary caches of the build plans are stored.

haskellFileExts :: [Text] Source #

Extensions used for Haskell modules. Excludes preprocessor ones.

haskellPreprocessorExts :: [Text] Source #

Extensions for modules that are preprocessed by common preprocessors.

stackDotYaml :: Path Rel File Source #

The filename used for the stack config file.

stackWorkEnvVar :: String Source #

Environment variable used to override the '.stack-work' relative dir.

stackRootEnvVar :: String Source #

Environment variable used to override the '~/.stack' location.

stackRootOptionName :: String Source #

Option name for the global stack root.

deprecatedStackRootOptionName :: String Source #

Deprecated option name for the global stack root.

Deprecated since stack-1.1.0.

TODO: Remove occurences of this variable and use stackRootOptionName only after an appropriate deprecation period.

inContainerEnvVar :: String Source #

Environment variable used to indicate stack is running in container.

inNixShellEnvVar :: String Source #

Environment variable used to indicate stack is running in container. although we already have STACK_IN_NIX_EXTRA_ARGS that is set in the same conditions, it can happen that STACK_IN_NIX_EXTRA_ARGS is set to empty.

stackProgNameUpper :: String Source #

Name of the stack program, uppercased

cabalPackageName :: PackageName Source #

Just to avoid repetition and magic strings.

implicitGlobalProjectDirDeprecated Source #

Arguments

:: Path Abs Dir

Stack root.

-> Path Abs Dir 

Deprecated implicit global project directory used when outside of a project.

implicitGlobalProjectDir Source #

Arguments

:: Path Abs Dir

Stack root.

-> Path Abs Dir 

Implicit global project directory used when outside of a project. Normally, getImplicitGlobalProjectDir should be used instead.

defaultUserConfigPathDeprecated :: Path Abs Dir -> Path Abs File Source #

Deprecated default global config path.

defaultUserConfigPath :: Path Abs Dir -> Path Abs File Source #

Default global config path. Normally, getDefaultUserConfigPath should be used instead.

defaultGlobalConfigPathDeprecated :: Maybe (Path Abs File) Source #

Deprecated default global config path. Note that this will be Nothing on Windows, which is by design.

defaultGlobalConfigPath :: Maybe (Path Abs File) Source #

Default global config path. Normally, getDefaultGlobalConfigPath should be used instead. Note that this will be Nothing on Windows, which is by design.

platformVariantEnvVar :: String Source #

Environment variable that stores a variant to append to platform-specific directory names. Used to ensure incompatible binaries aren't shared between Docker builds and host

compilerOptionsCabalFlag :: WhichCompiler -> String Source #

Provides --ghc-options for Ghc, and similarly, --ghcjs-options for Ghcjs.

ghcColorForceFlag :: String Source #

The flag to pass to GHC when we want to force its output to be colorized.

minTerminalWidth :: Int Source #

The minimum allowed terminal width. Used for pretty-printing.

maxTerminalWidth :: Int Source #

The maximum allowed terminal width. Used for pretty-printing.

defaultTerminalWidth :: Int Source #

The default terminal width. Used for pretty-printing when we can't automatically detect it and when the user doesn't supply one.

osIsWindows :: Bool Source #

True if using Windows OS.

bindirSuffix :: Path Rel Dir Source #

Suffix applied to an installation root to get the bin dir

docDirSuffix :: Path Rel Dir Source #

Suffix applied to an installation root to get the doc dir

hadrianCmdWindows :: Path Rel File Source #

Relative path inside a GHC repo to the Hadrian build batch script

hadrianCmdPosix :: Path Rel File Source #

Relative path inside a GHC repo to the Hadrian build shell script

usrLibDirs :: [Path Abs Dir] Source #

Used in Stack.Setup for detecting libtinfo, see comments at use site

testGhcEnvRelFile :: Path Rel File Source #

Relative file path for a temporary GHC environment file for tests

relFileBuildLock :: Path Rel File Source #

File inside a dist directory to use for locking