Safe Haskell | None |
---|---|
Language | GHC2021 |
Stack.Path
Description
Types and functions related to Stack's path
command.
Synopsis
- data EnvConfigPathInfo
- path :: [Text] -> RIO Runner ()
- pathsFromRunner :: (String, Text)
- pathsFromConfig :: [(String, Text, Config -> Text)]
- pathsFromEnvConfig :: [(String, Text, UseHaddocks (EnvConfigPathInfo -> Text))]
Documentation
data EnvConfigPathInfo Source #
Instances
HasPantryConfig EnvConfigPathInfo Source # | |
Defined in Stack.Path Methods | |
HasLogFunc EnvConfigPathInfo Source # | |
Defined in Stack.Path Methods | |
HasProcessContext EnvConfigPathInfo Source # | |
Defined in Stack.Path Methods | |
HasTerm EnvConfigPathInfo Source # | |
Defined in Stack.Path | |
HasStylesUpdate EnvConfigPathInfo Source # | |
Defined in Stack.Path Methods | |
HasBuildConfig EnvConfigPathInfo Source # | |
Defined in Stack.Path Methods buildConfigL :: Lens' EnvConfigPathInfo BuildConfig Source # | |
HasConfig EnvConfigPathInfo Source # | |
Defined in Stack.Path | |
HasGHCVariant EnvConfigPathInfo Source # | |
Defined in Stack.Path Methods ghcVariantL :: SimpleGetter EnvConfigPathInfo GHCVariant Source # | |
HasPlatform EnvConfigPathInfo Source # | |
Defined in Stack.Path | |
HasRunner EnvConfigPathInfo Source # | |
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.