Copyright | (c) 2024 Patrick Brisbin |
---|---|
License | AGPL-3 |
Maintainer | pbrisbin@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Ronn
Description
Synopsis
- module Ronn.AST
- module Ronn.Render
- ronnFilePath :: Ronn -> FilePath
- class HasSections p where
- getSynopsis :: p a -> Maybe [Part]
- getOptDefinitions :: p a -> Maybe [Definition]
- getEnvDefinitions :: p a -> Maybe [Definition]
- getSections :: HasSections p => Text -> p a -> [Section]
- synopsisSection :: Text -> [Part] -> Section
- seeAlsoSection :: [ManRef] -> Section
- oneLineSection :: Text -> [Part] -> Section
- definitionsSection :: Text -> [Definition] -> Section
Documentation
module Ronn.AST
module Ronn.Render
ronnFilePath :: Ronn -> FilePath Source #
Parser-based sections
class HasSections p where Source #
Parser types can be made an instance of this for use with getSections
Minimal complete definition
Nothing
Methods
getSynopsis :: p a -> Maybe [Part] Source #
Options parsers should produce [-f|--foo] --bar
synopsis parts
getOptDefinitions :: p a -> Maybe [Definition] Source #
Options parsers should produce a list of option/help definitions
getEnvDefinitions :: p a -> Maybe [Definition] Source #
Environment parsers should produce a list of variable/help definitions
getSections :: HasSections p => Text -> p a -> [Section] Source #
Higher-level builders
seeAlsoSection :: [ManRef] -> Section Source #
definitionsSection :: Text -> [Definition] -> Section Source #