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

Patat.Presentation.Internal

Synopsis

Documentation

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]

data Slide Source #

Constructors

ContentSlide [Fragment] 
TitleSlide Block 

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 

Fields

Instances

Instances details
Show Fragment Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

showsPrec :: Int -> Fragment -> ShowS

show :: Fragment -> String

showList :: [Fragment] -> ShowS

Semigroup Fragment Source # 
Instance details

Defined in Patat.Presentation.Internal

Methods

(<>) :: Fragment -> Fragment -> Fragment

sconcat :: NonEmpty Fragment -> Fragment

stimes :: Integral b => b -> Fragment -> Fragment

Monoid Fragment Source # 
Instance details

Defined in Patat.Presentation.Internal

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