Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- 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
- 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 #
headerHelp :: 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.