Safe Haskell | None |
---|---|
Language | GHC2021 |
Stack.Options.GlobalParser
Description
Functions to parse Stack's 'global' command line arguments.
Synopsis
- globalOptsFromMonoid :: MonadIO m => String -> Maybe (Path Abs File) -> Bool -> GlobalOptsMonoid -> m GlobalOpts
- globalOptsParser :: FilePath -> GlobalOptsContext -> Parser GlobalOptsMonoid
Documentation
Arguments
:: MonadIO m | |
=> String | The name of the current Stack executable, as it was invoked. |
-> Maybe (Path Abs File) | The path to the current Stack executable, if the operating system provides a reliable way to determine it and where a result was available. |
-> Bool | |
-> GlobalOptsMonoid | |
-> m GlobalOpts |
Create GlobalOpts from GlobalOptsMonoid.
globalOptsParser :: FilePath -> GlobalOptsContext -> Parser GlobalOptsMonoid Source #
Parser for global command-line options.