Slides 0.1.0.4 → 0.1.0.5
raw patch · 2 files changed
+35/−32 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Slides.cabal +1/−1
- src/Slides/Presentation.hs +34/−31
Slides.cabal view
@@ -1,5 +1,5 @@ name: Slides -version: 0.1.0.4 +version: 0.1.0.5 synopsis: Generate slides from Haskell code description: Make presentations in Haskell with diagrams license: MIT
src/Slides/Presentation.hs view
@@ -11,42 +11,45 @@ -- @ -- sample :: 'Presentation' -- sample = --- 'Presentation' [ --- 'Slide' [ --- 'Header' 2 \"Title\", --- 'Sequence' 'Immediate' [ --- 'UnfoldConcatList' 'Delay' [ --- 'Header' 3 \"Example\", --- 'UnfoldList' 'Immediate' [ --- \"These lines will unfold one by one.\", --- \"You can use some markdown in these strings like _this_ or *this* \\ --- \\or \__this__ or **this**.\" +-- 'emptyPresentation' { +-- 'slides' = [ +-- 'Slide' [ +-- 'Header' 2 \"Title\", +-- 'Sequence' 'Immediate' [ +-- -- this delay does nothing because the parent 'Immediate' overrides it +-- 'UnfoldConcatList' 'Delay' [ +-- 'Header' 3 \"Example\", +-- 'UnfoldList' 'Immediate' [ +-- \"These lines will unfold one by one.\", +-- \"You can use some markdown in these strings like _this_ or *this* \\ +-- \\or \__this__ or **this**.\" +-- ], +-- 'Diagram' 200 someDiagram -- ], --- 'Diagram' 200 someDiagram --- ], +-- 'List' [ +-- \"This list will be shown in place of the previous title-list-diagram.\", +-- \"This item will be shown immediately with the last one.\" +-- ] +-- ] -- note that the above title \"Title\" will remain there during the sequence. +-- ], +-- 'Slide' [ +-- 'Header' 2 \"Another slide\", -- 'List' [ --- \"This list will be shown in place of the previous title-list-diagram.\", --- \"This item will be shown immediately with the last one.\" +-- \"Some text describing stuff.\", +-- \"More text.\" +-- ], +-- 'Sequence' 'Delay' [ +-- 'Diagram' 200 a, +-- 'Diagram' 200 sequence, +-- 'Diagram' 200 of, +-- 'Diagram' 300 diagrams -- ] --- ] -- note that the above title \"Title\" will remain there during the sequence. --- ], --- 'Slide' [ --- 'Header' 2 \"Another slide\", --- 'List' [ --- \"Some text describing stuff.\", --- \"More text.\" --- ], --- 'Sequence' 'Delay' [ --- 'Diagram' 200 a, --- 'Diagram' 200 sequence, --- 'Diagram' 200 of, --- 'Diagram' 300 diagrams -- ] -- ] --- ] - -- - -- main :: IO () - -- main = writeToFile \"index.html\" sample +-- } +-- +-- main :: IO () +-- main = 'writeToFile' \"index.html\" sample -- @ module Slides.Presentation ( renderPresentation, writeToFile, module Slides.Common