Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- cmdDesc :: Parser a -> [(Maybe String, Chunk Doc)]
- briefDesc :: ParserPrefs -> Parser a -> Chunk Doc
- missingDesc :: ParserPrefs -> Parser a -> Chunk Doc
- fold_tree :: OptTree (Chunk Doc) -> Chunk Doc
- fullDesc :: ParserPrefs -> Parser a -> Chunk Doc
- data ParserHelp = ParserHelp {}
- errorHelp :: Chunk Doc -> ParserHelp
- headerHelp :: Chunk Doc -> ParserHelp
- suggestionsHelp :: Chunk Doc -> ParserHelp
- usageHelp :: Chunk Doc -> ParserHelp
- bodyHelp :: Chunk Doc -> ParserHelp
- footerHelp :: Chunk Doc -> ParserHelp
- parserHelp :: ParserPrefs -> Parser a -> ParserHelp
- parserUsage :: ParserPrefs -> Parser a -> String -> Doc
Documentation
missingDesc :: ParserPrefs -> Parser a -> Chunk Doc Source #
Generate a brief help text for a parser, only including mandatory options and arguments.
data ParserHelp Source #
Instances
Show ParserHelp Source # | |
Defined in Options.Applicative.Help.Types showsPrec :: Int -> ParserHelp -> ShowS # show :: ParserHelp -> String # showList :: [ParserHelp] -> ShowS # | |
Semigroup ParserHelp Source # | |
Defined in Options.Applicative.Help.Types (<>) :: ParserHelp -> ParserHelp -> ParserHelp # sconcat :: NonEmpty ParserHelp -> ParserHelp # stimes :: Integral b => b -> ParserHelp -> ParserHelp # | |
Monoid ParserHelp Source # | |
Defined in Options.Applicative.Help.Types mempty :: ParserHelp # mappend :: ParserHelp -> ParserHelp -> ParserHelp # mconcat :: [ParserHelp] -> ParserHelp # |
headerHelp :: Chunk Doc -> ParserHelp Source #
suggestionsHelp :: Chunk Doc -> ParserHelp Source #
footerHelp :: Chunk Doc -> ParserHelp Source #
parserHelp :: ParserPrefs -> Parser a -> ParserHelp Source #
Generate the help text for a program.
parserUsage :: ParserPrefs -> Parser a -> String -> Doc Source #
Generate option summary.