opt-env-conf-0.8.0.0: Settings parsing for Haskell: command-line arguments, environment variables, and configuration values.
Safe HaskellSafe-Inferred
LanguageHaskell2010

OptEnvConf.Doc

Contents

Synopsis

Documentation

renderVersionPage :: String -> Version -> [Chunk] Source #

Render the output of --version

parserDocs :: Parser a -> AnyDocs (Maybe SetDoc) Source #

Derive parser documentation

API Note: We return a Maybe inside the AnyDocs so that we can keep track of hidden settings and use this information to know whether settings are optional or not.

renderHelpPage :: String -> Version -> String -> AnyDocs (Maybe SetDoc) -> [Chunk] Source #

Render the output of top-level --help

renderCommandHelpPage :: String -> [String] -> CommandDoc (Maybe SetDoc) -> [Chunk] Source #

Render the output of a --help with at least one command

renderManPage :: String -> Version -> String -> AnyDocs (Maybe SetDoc) -> [Chunk] Source #

Render the output of `--render-man-page` for reading with man

renderReferenceDocumentation :: String -> AnyDocs (Maybe SetDoc) -> [Chunk] Source #

Render reference documentation

renderLongOptDocs :: AnyDocs (Maybe OptDoc) -> [Chunk] Source #

Render long-form documentation of options

renderShortOptDocs :: String -> AnyDocs (Maybe OptDoc) -> [Chunk] Source #

Render short-form documentation of options

renderEnvDocs :: AnyDocs EnvDoc -> [Chunk] Source #

Render documentation of envionment variables

renderConfDocs :: AnyDocs ConfDoc -> [Chunk] Source #

Render documentation of configuration values

Internal

data AnyDocs a Source #

Instances

Instances details
Functor AnyDocs Source # 
Instance details

Defined in OptEnvConf.Doc

Methods

fmap :: (a -> b) -> AnyDocs a -> AnyDocs b #

(<$) :: a -> AnyDocs b -> AnyDocs a #

Show a => Show (AnyDocs a) Source # 
Instance details

Defined in OptEnvConf.Doc

Methods

showsPrec :: Int -> AnyDocs a -> ShowS #

show :: AnyDocs a -> String #

showList :: [AnyDocs a] -> ShowS #

data OptDoc Source #

Instances

Instances details
Show OptDoc Source # 
Instance details

Defined in OptEnvConf.Doc

data EnvDoc Source #

Instances

Instances details
Show EnvDoc Source # 
Instance details

Defined in OptEnvConf.Doc

data ConfDoc Source #

Instances

Instances details
Show ConfDoc Source # 
Instance details

Defined in OptEnvConf.Doc

data CommandDoc a Source #

Instances

Instances details
Functor CommandDoc Source # 
Instance details

Defined in OptEnvConf.Doc

Methods

fmap :: (a -> b) -> CommandDoc a -> CommandDoc b #

(<$) :: a -> CommandDoc b -> CommandDoc a #

Show a => Show (CommandDoc a) Source # 
Instance details

Defined in OptEnvConf.Doc