Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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.
Documentation
data Instructions a Source #
Instances
Show a => Show (Instructions a) Source # | |
Defined in Patat.Presentation.Instruction Methods showsPrec :: Int -> Instructions a -> ShowS # show :: Instructions a -> String # showList :: [Instructions a] -> ShowS # |
fromList :: [Instruction a] -> Instructions a Source #
toList :: Instructions a -> [Instruction a] Source #
data Instruction a Source #
Constructors
Pause | |
Append [a] | |
Delete | |
ModifyLast (Instruction a) |
Instances
Show a => Show (Instruction a) Source # | |
Defined in Patat.Presentation.Instruction Methods showsPrec :: Int -> Instruction a -> ShowS # show :: Instruction a -> String # showList :: [Instruction a] -> ShowS # |
numFragments :: Instructions a -> Int Source #
renderFragment :: Int -> Instructions Block -> Fragment Source #