Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Types and functions related to Stack's path
command.
Documentation
Type representing information passed to all the path printers.
Instances
HasPantryConfig PathInfo Source # | |
Defined in Stack.Path | |
HasLogFunc PathInfo Source # | |
HasProcessContext PathInfo Source # | |
Defined in Stack.Path | |
HasTerm PathInfo Source # | |
HasStylesUpdate PathInfo Source # | |
Defined in Stack.Path | |
HasBuildConfig PathInfo Source # | |
Defined in Stack.Path | |
HasConfig PathInfo Source # | |
HasGHCVariant PathInfo Source # | |
Defined in Stack.Path | |
HasPlatform PathInfo Source # | |
Defined in Stack.Path | |
HasRunner PathInfo Source # | |
path :: [Text] -> RIO Runner () Source #
Print out useful path information in a human-readable format (and support others later).
paths :: [(String, Text, UseHaddocks (PathInfo -> Text))] Source #
The paths of interest to a user. 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 PathInfo
and pass it to the function to
generate an appropriate string. Trailing slashes are removed, see #506.