ronn-1.2.0.0: Describe and render Ronn documentation
Copyright(c) 2024 Patrick Brisbin
LicenseAGPL-3
Maintainerpbrisbin@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageGHC2021

Ronn

Description

 
Synopsis

Documentation

module Ronn.AST

Parser-based sections

class HasSections (p :: k -> Type) where Source #

Parser types can be made an instance of this for use with getSections

Minimal complete definition

Nothing

Methods

getSynopsis :: forall (a :: k). p a -> Maybe [Part] Source #

Options parsers should produce [-f|--foo] --bar synopsis parts

getOptDefinitions :: forall (a :: k). p a -> Maybe [Definition] Source #

Options parsers should produce a list of option/help definitions

getCmdDefinitions :: forall (a :: k). p a -> Maybe [Definition] Source #

Options parsers should produce a list of command/help definitions

getEnvDefinitions :: forall (a :: k). p a -> Maybe [Definition] Source #

Environment parsers should produce a list of variable/help definitions

getSections :: forall {k} p (a :: k). HasSections p => Text -> p a -> [Section] Source #

Higher-level builders