Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- renderVersionPage :: String -> Version -> [Chunk]
- parserDocs :: Parser a -> AnyDocs SetDoc
- renderHelpPage :: String -> String -> AnyDocs SetDoc -> [Chunk]
- renderManPage :: String -> Version -> String -> AnyDocs SetDoc -> [Chunk]
- renderReferenceDocumentation :: String -> AnyDocs SetDoc -> [Chunk]
- parserOptDocs :: Parser a -> AnyDocs OptDoc
- renderLongOptDocs :: AnyDocs OptDoc -> [Chunk]
- renderShortOptDocs :: String -> AnyDocs OptDoc -> [Chunk]
- parserEnvDocs :: Parser a -> AnyDocs EnvDoc
- renderEnvDocs :: AnyDocs EnvDoc -> [Chunk]
- parserConfDocs :: Parser a -> AnyDocs ConfDoc
- renderConfDocs :: AnyDocs ConfDoc -> [Chunk]
- data AnyDocs a
- = AnyDocsCommands [CommandDoc a]
- | AnyDocsAnd ![AnyDocs a]
- | AnyDocsOr ![AnyDocs a]
- | AnyDocsSingle !a
- data SetDoc = SetDoc {
- setDocTryArgument :: !Bool
- setDocTrySwitch :: !Bool
- setDocTryOption :: !Bool
- setDocDasheds :: ![Dashed]
- setDocEnvVars :: !(Maybe (NonEmpty String))
- setDocConfKeys :: !(Maybe (NonEmpty (NonEmpty String, JSONSchema)))
- setDocDefault :: !(Maybe String)
- setDocMetavar :: !(Maybe Metavar)
- setDocHelp :: !(Maybe String)
- data OptDoc = OptDoc {
- optDocTryArgument :: !Bool
- optDocTrySwitch :: !Bool
- optDocTryOption :: !Bool
- optDocDasheds :: ![Dashed]
- optDocDefault :: !(Maybe String)
- optDocMetavar :: !(Maybe Metavar)
- optDocHelp :: !(Maybe String)
- data EnvDoc = EnvDoc {
- envDocVars :: !(NonEmpty String)
- envDocDefault :: !(Maybe String)
- envDocMetavar :: !(Maybe Metavar)
- envDocHelp :: !(Maybe String)
- data ConfDoc = ConfDoc {
- confDocKeys :: !(NonEmpty (NonEmpty String, JSONSchema))
- confDocDefault :: !(Maybe String)
- confDocHelp :: !(Maybe String)
- settingSetDoc :: Setting a -> Maybe SetDoc
- renderSetDoc :: SetDoc -> [[Chunk]]
- settingOptDoc :: Setting a -> Maybe OptDoc
- renderOptDocLong :: OptDoc -> [[Chunk]]
- settingEnvDoc :: Setting a -> Maybe EnvDoc
- renderEnvDoc :: EnvDoc -> [[Chunk]]
- settingConfDoc :: Setting a -> Maybe ConfDoc
- renderConfDoc :: ConfDoc -> [[Chunk]]
- helpLines :: Help -> [[Chunk]]
Documentation
renderManPage :: String -> Version -> String -> AnyDocs SetDoc -> [Chunk] Source #
Render the output of `--render-man-page` for reading with man
renderReferenceDocumentation :: String -> AnyDocs SetDoc -> [Chunk] Source #
Render reference documentation
renderShortOptDocs :: String -> AnyDocs OptDoc -> [Chunk] Source #
Render short-form documentation of options
Internal
AnyDocsCommands [CommandDoc a] | |
AnyDocsAnd ![AnyDocs a] | |
AnyDocsOr ![AnyDocs a] | |
AnyDocsSingle !a |
Instances
Foldable AnyDocs Source # | |
Defined in OptEnvConf.Doc fold :: Monoid m => AnyDocs m -> m # foldMap :: Monoid m => (a -> m) -> AnyDocs a -> m # foldMap' :: Monoid m => (a -> m) -> AnyDocs a -> m # foldr :: (a -> b -> b) -> b -> AnyDocs a -> b # foldr' :: (a -> b -> b) -> b -> AnyDocs a -> b # foldl :: (b -> a -> b) -> b -> AnyDocs a -> b # foldl' :: (b -> a -> b) -> b -> AnyDocs a -> b # foldr1 :: (a -> a -> a) -> AnyDocs a -> a # foldl1 :: (a -> a -> a) -> AnyDocs a -> a # elem :: Eq a => a -> AnyDocs a -> Bool # maximum :: Ord a => AnyDocs a -> a # minimum :: Ord a => AnyDocs a -> a # | |
Traversable AnyDocs Source # | |
Functor AnyDocs Source # | |
Show a => Show (AnyDocs a) Source # | |
SetDoc | |
|
OptDoc | |
|
EnvDoc | |
|
ConfDoc | |
|
renderSetDoc :: SetDoc -> [[Chunk]] Source #
renderOptDocLong :: OptDoc -> [[Chunk]] Source #
renderEnvDoc :: EnvDoc -> [[Chunk]] Source #
renderConfDoc :: ConfDoc -> [[Chunk]] Source #