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

Patat.Presentation.Instruction

Description

The Pandoc AST is not extensible, so we need to use another way to model different parts of slides that we want to appear bit by bit.

We do this by modelling a slide as a list of instructions, that manipulate the contents on a slide in a (for now) very basic way.

Synopsis

Documentation

data Instructions a Source #

Instances

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

Defined in Patat.Presentation.Instruction

data Var Source #

A variable is like a placeholder in the instructions, something we don't know yet, dynamic content. Currently this is only used for code evaluation.

Instances

Instances details
Show Var Source # 
Instance details

Defined in Patat.Presentation.Instruction

Methods

showsPrec :: Int -> Var -> ShowS #

show :: Var -> String #

showList :: [Var] -> ShowS #

Eq Var Source # 
Instance details

Defined in Patat.Presentation.Instruction

Methods

(==) :: Var -> Var -> Bool #

(/=) :: Var -> Var -> Bool #

Ord Var Source # 
Instance details

Defined in Patat.Presentation.Instruction

Methods

compare :: Var -> Var -> Ordering #

(<) :: Var -> Var -> Bool #

(<=) :: Var -> Var -> Bool #

(>) :: Var -> Var -> Bool #

(>=) :: Var -> Var -> Bool #

max :: Var -> Var -> Var #

min :: Var -> Var -> Var #

Hashable Var Source # 
Instance details

Defined in Patat.Presentation.Instruction

Methods

hashWithSalt :: Int -> Var -> Int #

hash :: Var -> Int #

data VarGen Source #

Used to generate fresh variables.

Instances

Instances details
Show VarGen Source # 
Instance details

Defined in Patat.Presentation.Instruction

data Instruction a Source #

Instances

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

Defined in Patat.Presentation.Instruction

newtype Fragment Source #

Constructors

Fragment [Block] 

Instances

Instances details
Show Fragment Source # 
Instance details

Defined in Patat.Presentation.Instruction