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

Ronn.AST

Contents

Description

 
Synopsis

Documentation

data Ronn Source #

Constructors

Ronn 

Fields

data Section Source #

Constructors

Section 

Fields

data Content Source #

Constructors

Definitions [Definition] 
Groups [Group] 

Instances

Instances details
IsString Content Source # 
Instance details

Defined in Ronn.AST

Methods

fromString :: String -> Content #

data Definition Source #

Constructors

Definition 

Fields

data Group Source #

Constructors

Title ManRef [Part] 
Header Text 
Lines [Line] 

Instances

Instances details
IsString Group Source # 
Instance details

Defined in Ronn.AST

Methods

fromString :: String -> Group #

newtype Line Source #

Constructors

Line 

Fields

Instances

Instances details
IsString Line Source # 
Instance details

Defined in Ronn.AST

Methods

fromString :: String -> Line #

data Part Source #

Constructors

Concat [Part]

Concat joins Parts without automaticaly inserting a space

The following expressions are equivalent:

  • ronnLineToText $ Line [p1, p2]
  • ronnLineToText $ Line [Concat [p1, " ", p2]]
  • ronnLineToText $ Line [p1 <> " " <> p2]

Using the Semigroup instance should be preferred, in case the AST changes in the future.

Code Part 
UserInput Part 
Strong Part 
Variable Part 
Ephasis Part 
Brackets Part 
Parens Part 
Ref ManRef 
Raw Text 

Instances

Instances details
IsString Part Source # 
Instance details

Defined in Ronn.AST

Methods

fromString :: String -> Part #

Monoid Part Source # 
Instance details

Defined in Ronn.AST

Methods

mempty :: Part #

mappend :: Part -> Part -> Part #

mconcat :: [Part] -> Part #

Semigroup Part Source # 
Instance details

Defined in Ronn.AST

Methods

(<>) :: Part -> Part -> Part #

sconcat :: NonEmpty Part -> Part #

stimes :: Integral b => b -> Part -> Part #

References

data ManRef Source #

Constructors

ManRef 

Fields

Instances

Instances details
Show ManRef Source # 
Instance details

Defined in Ronn.ManRef

Eq ManRef Source # 
Instance details

Defined in Ronn.ManRef

Methods

(==) :: ManRef -> ManRef -> Bool #

(/=) :: ManRef -> ManRef -> Bool #

Ord ManRef Source # 
Instance details

Defined in Ronn.ManRef