patat-0.8.6.1: Terminal-based presentations using Pandoc
Safe HaskellNone
LanguageHaskell2010

Patat.Presentation.Internal

Synopsis

Documentation

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

data Presentation Source #

Constructors

Presentation 

Fields

Instances

Instances details
Show Presentation Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> Presentation -> ShowS

show :: Presentation -> String

showList :: [Presentation] -> ShowS

data PresentationSettings Source #

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

Constructors

PresentationSettings 

Fields

data Margins Source #

Constructors

Margins 

Fields

  • mLeft :: !(Maybe (FlexibleNum Int))
     
  • mRight :: !(Maybe (FlexibleNum Int))
     

Instances

Instances details
Show Margins Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> Margins -> ShowS

show :: Margins -> String

showList :: [Margins] -> ShowS

Semigroup Margins Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

(<>) :: Margins -> Margins -> Margins

sconcat :: NonEmpty Margins -> Margins

stimes :: Integral b => b -> Margins -> Margins

Monoid Margins Source # 
Instance details

Defined in Patat.Presentation.Internal

FromJSON Margins Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

parseJSON :: Value -> Parser Margins

parseJSONList :: Value -> Parser [Margins]

newtype ExtensionList Source #

Constructors

ExtensionList 

Fields

Instances

Instances details
Show ExtensionList Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> ExtensionList -> ShowS

show :: ExtensionList -> String

showList :: [ExtensionList] -> ShowS

FromJSON ExtensionList Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

parseJSON :: Value -> Parser ExtensionList

parseJSONList :: Value -> Parser [ExtensionList]

data ImageSettings Source #

Constructors

ImageSettings 

Fields

Instances

Instances details
Show ImageSettings Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> ImageSettings -> ShowS

show :: ImageSettings -> String

showList :: [ImageSettings] -> ShowS

FromJSON ImageSettings Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

parseJSON :: Value -> Parser ImageSettings

parseJSONList :: Value -> Parser [ImageSettings]

type EvalSettingsMap = HashMap Text EvalSettings Source #

data EvalSettings Source #

Constructors

EvalSettings 

Fields

Instances

Instances details
Show EvalSettings Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> EvalSettings -> ShowS

show :: EvalSettings -> String

showList :: [EvalSettings] -> ShowS

FromJSON EvalSettings Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

parseJSON :: Value -> Parser EvalSettings

parseJSONList :: Value -> Parser [EvalSettings]

data Slide Source #

Constructors

ContentSlide (Instructions Block) 
TitleSlide Int [Inline] 

Instances

Instances details
Show Slide Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> Slide -> ShowS

show :: Slide -> String

showList :: [Slide] -> 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