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

Patat.Presentation

Synopsis

Documentation

data PresentationSettings Source #

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

Constructors

PresentationSettings 

Fields

data UniqueGen Source #

Used to generate fresh variables.

Instances

Instances details
Show UniqueGen Source # 
Instance details

Defined in Patat.Unique

Methods

showsPrec :: Int -> UniqueGen -> ShowS

show :: UniqueGen -> String

showList :: [UniqueGen] -> ShowS

data Unique Source #

Can be used as a unique identifier.

Instances

Instances details
Show Unique Source # 
Instance details

Defined in Patat.Unique

Methods

showsPrec :: Int -> Unique -> ShowS

show :: Unique -> String

showList :: [Unique] -> ShowS

Eq Unique Source # 
Instance details

Defined in Patat.Unique

Methods

(==) :: Unique -> Unique -> Bool

(/=) :: Unique -> Unique -> Bool

Ord Unique Source # 
Instance details

Defined in Patat.Unique

Methods

compare :: Unique -> Unique -> Ordering

(<) :: Unique -> Unique -> Bool

(<=) :: Unique -> Unique -> Bool

(>) :: Unique -> Unique -> Bool

(>=) :: Unique -> Unique -> Bool

max :: Unique -> Unique -> Unique

min :: Unique -> Unique -> Unique

Hashable Unique Source # 
Instance details

Defined in Patat.Unique

Methods

hashWithSalt :: Int -> Unique -> Int

hash :: Unique -> Int

readPresentation :: UniqueGen -> FilePath -> IO (Either String Presentation) Source #

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

data Display Source #

Constructors

DisplayDoc Doc 
DisplayImage FilePath 

Instances

Instances details
Show Display Source # 
Instance details

Defined in Patat.Presentation.Display

Methods

showsPrec :: Int -> Display -> ShowS

show :: Display -> String

showList :: [Display] -> ShowS

displayPresentationError :: Size -> Presentation -> String -> Doc Source #

Displays an error in the place of the presentation. This is useful if we want to display an error but keep the presentation running.