patat-0.11.0.0: Terminal-based presentations using Pandoc
Safe HaskellSafe-Inferred
LanguageHaskell2010

Patat.Presentation.Internal

Synopsis

Documentation

type Breadcrumbs = [(Int, [Inline])] Source #

data Presentation Source #

Constructors

Presentation 

Fields

data PresentationSettings Source #

These are patat-specific settings. That is where they differ from more general metadata (author, title...)

Constructors

PresentationSettings 

Fields

data MarginSettings Source #

Constructors

MarginSettings 

Fields

Instances

Instances details
FromJSON MarginSettings Source # 
Instance details

Defined in Patat.Presentation.Settings

Methods

parseJSON :: Value -> Parser MarginSettings

parseJSONList :: Value -> Parser [MarginSettings]

Monoid MarginSettings Source # 
Instance details

Defined in Patat.Presentation.Settings

Semigroup MarginSettings Source # 
Instance details

Defined in Patat.Presentation.Settings

Show MarginSettings Source # 
Instance details

Defined in Patat.Presentation.Settings

Methods

showsPrec :: Int -> MarginSettings -> ShowS

show :: MarginSettings -> String

showList :: [MarginSettings] -> ShowS

data Margins Source #

Constructors

Margins 

Fields

Instances

Instances details
Show Margins Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> Margins -> ShowS

show :: Margins -> String

showList :: [Margins] -> ShowS

newtype ExtensionList Source #

Constructors

ExtensionList 

Fields

Instances

Instances details
FromJSON ExtensionList Source # 
Instance details

Defined in Patat.Presentation.Settings

Methods

parseJSON :: Value -> Parser ExtensionList

parseJSONList :: Value -> Parser [ExtensionList]

Show ExtensionList Source # 
Instance details

Defined in Patat.Presentation.Settings

Methods

showsPrec :: Int -> ExtensionList -> ShowS

show :: ExtensionList -> String

showList :: [ExtensionList] -> ShowS

data ImageSettings Source #

Constructors

ImageSettings 

Fields

Instances

Instances details
FromJSON ImageSettings Source # 
Instance details

Defined in Patat.Presentation.Settings

Methods

parseJSON :: Value -> Parser ImageSettings

parseJSONList :: Value -> Parser [ImageSettings]

Show ImageSettings Source # 
Instance details

Defined in Patat.Presentation.Settings

Methods

showsPrec :: Int -> ImageSettings -> ShowS

show :: ImageSettings -> String

showList :: [ImageSettings] -> ShowS

type EvalSettingsMap = HashMap Text EvalSettings Source #

data EvalSettings Source #

Constructors

EvalSettings 

Fields

Instances

Instances details
FromJSON EvalSettings Source # 
Instance details

Defined in Patat.Presentation.Settings

Methods

parseJSON :: Value -> Parser EvalSettings

parseJSONList :: Value -> Parser [EvalSettings]

Show EvalSettings Source # 
Instance details

Defined in Patat.Presentation.Settings

Methods

showsPrec :: Int -> EvalSettings -> ShowS

show :: EvalSettings -> String

showList :: [EvalSettings] -> ShowS

data Slide Source #

Constructors

Slide 

Instances

Instances details
Show Slide Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> Slide -> ShowS

show :: Slide -> String

showList :: [Slide] -> ShowS

data SlideContent Source #

Constructors

ContentSlide (Instructions Block) 
TitleSlide Int [Inline] 

Instances

Instances details
Show SlideContent Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> SlideContent -> ShowS

show :: SlideContent -> String

showList :: [SlideContent] -> ShowS

newtype Fragment Source #

Constructors

Fragment [Block] 

Instances

Instances details
Show Fragment Source # 
Instance details

Defined in Patat.Presentation.Instruction

Methods

showsPrec :: Int -> Fragment -> ShowS

show :: Fragment -> String

showList :: [Fragment] -> ShowS

type Index = (Int, Int) Source #

Active slide, active fragment.

getSlide :: Int -> Presentation -> Maybe Slide Source #

data ActiveFragment Source #

Constructors

ActiveContent Fragment 
ActiveTitle Block 

Instances

Instances details
Show ActiveFragment Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> ActiveFragment -> ShowS

show :: ActiveFragment -> String

showList :: [ActiveFragment] -> ShowS

data Size Source #

Instances

Instances details
Show Size Source # 
Instance details

Defined in Patat.Size

Methods

showsPrec :: Int -> Size -> ShowS

show :: Size -> String

showList :: [Size] -> ShowS