backend-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Lsd.AST.Format

Synopsis

Documentation

newtype FormatString a Source #

Constructors

FormatString [FormatAtom a] 

Instances

Instances details
Show a => Show (FormatString a) Source # 
Instance details

Defined in Language.Lsd.AST.Format

Eq a => Eq (FormatString a) Source # 
Instance details

Defined in Language.Lsd.AST.Format

data FormatAtom a Source #

Instances

Instances details
Show a => Show (FormatAtom a) Source # 
Instance details

Defined in Language.Lsd.AST.Format

Eq a => Eq (FormatAtom a) Source # 
Instance details

Defined in Language.Lsd.AST.Format

Methods

(==) :: FormatAtom a -> FormatAtom a -> Bool #

(/=) :: FormatAtom a -> FormatAtom a -> Bool #

data EnumStyle Source #

Instances

Instances details
Show EnumStyle Source # 
Instance details

Defined in Language.Lsd.AST.Format

Eq EnumStyle Source # 
Instance details

Defined in Language.Lsd.AST.Format

data HeadingFormat (permitIdentifier :: Bool) Source #

The format of a heading. The boolean type parameter determines whether an identifier (placeholder) is permitted in the heading (format).

Constructors

HeadingFormat Typography (FormatString (HeadingPlaceholderAtom permitIdentifier)) 

Instances

Instances details
Show (HeadingFormat permitIdentifier) Source # 
Instance details

Defined in Language.Lsd.AST.Format

Methods

showsPrec :: Int -> HeadingFormat permitIdentifier -> ShowS #

show :: HeadingFormat permitIdentifier -> String #

showList :: [HeadingFormat permitIdentifier] -> ShowS #

data HeadingPlaceholderAtom (permitIdentifier :: Bool) where Source #

Constructors

IdentifierPlaceholder :: HeadingPlaceholderAtom 'True 
HeadingTextPlaceholder :: forall (permitIdentifier :: Bool). HeadingPlaceholderAtom permitIdentifier 

Instances

Instances details
Show (HeadingPlaceholderAtom a) Source # 
Instance details

Defined in Language.Lsd.AST.Format

type MainHeadingFormat = HeadingFormat 'False Source #

Heading format without identifier placeholders.

type InnerHeadingFormat = HeadingFormat 'True Source #

Heading format with identifier placeholders.

newtype TocKeyFormat Source #

Constructors

TocKeyFormat KeyFormat 

Instances

Instances details
Show TocKeyFormat Source # 
Instance details

Defined in Language.Lsd.AST.Format