| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Shrun.Configuration.Args.Parsing.Utils
Synopsis
- withDisabledParser :: Parser (Maybe a) -> String -> Parser (WithDisabled a)
- withDisabledParserOpts :: Mod FlagFields Bool -> Parser (Maybe a) -> String -> Parser (WithDisabled a)
- mkHelp :: forall (f :: Type -> Type) a. String -> Mod f a
- autoStripUnderscores :: Read a => ReadM a
Documentation
Arguments
| :: Parser (Maybe a) | Main parser. |
| -> String | Name for this option, to be used in disabled switch name. |
| -> Parser (WithDisabled a) |
Adds a '--no-x' switch to the parser.
withDisabledParserOpts Source #
Arguments
| :: Mod FlagFields Bool | Disabled switch options. |
| -> Parser (Maybe a) | Main parser |
| -> String | Name for this option, to be used in disabled switch name. |
| -> Parser (WithDisabled a) |
Like withDisabledParser, except it also takes an arg for the disabled
switch options.