stack-2.15.3: The Haskell Tool Stack
Safe HaskellSafe-Inferred
LanguageGHC2021

Stack.Path

Description

Types and functions related to Stack's path command.

Synopsis

Documentation

data EnvConfigPathInfo Source #

Instances

Instances details
HasPantryConfig EnvConfigPathInfo Source # 
Instance details

Defined in Stack.Path

HasLogFunc EnvConfigPathInfo Source # 
Instance details

Defined in Stack.Path

HasProcessContext EnvConfigPathInfo Source # 
Instance details

Defined in Stack.Path

HasTerm EnvConfigPathInfo Source # 
Instance details

Defined in Stack.Path

HasStylesUpdate EnvConfigPathInfo Source # 
Instance details

Defined in Stack.Path

HasBuildConfig EnvConfigPathInfo Source # 
Instance details

Defined in Stack.Path

HasConfig EnvConfigPathInfo Source # 
Instance details

Defined in Stack.Path

HasGHCVariant EnvConfigPathInfo Source # 
Instance details

Defined in Stack.Path

HasPlatform EnvConfigPathInfo Source # 
Instance details

Defined in Stack.Path

HasRunner EnvConfigPathInfo Source # 
Instance details

Defined in Stack.Path

path :: [Text] -> RIO Runner () Source #

Print out useful path information in a human-readable format (and support others later).

pathsFromRunner :: (String, Text) Source #

The paths of interest to a user which do require a Config or EnvConfig. The first tuple string is used for a description that the optparse flag uses, and the second string as a machine-readable key and also for --foo flags. The user can choose a specific path to list like --stack-root. But really it's mainly for the documentation aspect.

pathsFromConfig :: [(String, Text, Config -> Text)] Source #

The paths of interest to a user which do require an EnvConfig. The first tuple string is used for a description that the optparse flag uses, and the second string as a machine-readable key and also for --foo flags. The user can choose a specific path to list like --stack-root. But really it's mainly for the documentation aspect.

When printing output we generate Config and pass it to the function to generate an appropriate string. Trailing slashes are removed, see #506.

pathsFromEnvConfig :: [(String, Text, UseHaddocks (EnvConfigPathInfo -> Text))] Source #

The paths of interest to a user which require a EnvConfig. The first tuple string is used for a description that the optparse flag uses, and the second string as a machine-readable key and also for --foo flags. The user can choose a specific path to list like --project-root. But really it's mainly for the documentation aspect.

When printing output we generate EnvConfigPathInfo and pass it to the function to generate an appropriate string. Trailing slashes are removed, see #506.