Safe Haskell | None |
---|---|
Language | GHC2021 |
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
:: 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 #
:: 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.