Slides 0.1.0.8 → 0.1.0.9
raw patch · 2 files changed
+5/−5 lines, 2 filesdep ~basedep ~diagrams-svgPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, diagrams-svg
API changes (from Hackage documentation)
Files
- Slides.cabal +4/−4
- src/Slides/Internal.hs +1/−1
Slides.cabal view
@@ -1,5 +1,5 @@ name: Slides -version: 0.1.0.8 +version: 0.1.0.9 synopsis: Generate slides from Haskell code description: Make presentations in Haskell with diagrams license: MIT @@ -21,12 +21,12 @@ , Slides.Common other-modules: Slides.Sequencing , Slides.Internal - build-depends: base >=4.8 && <4.9 - , diagrams-svg == 1.3.* + build-depends: base >=4.8 && < 5 + , diagrams-svg >= 1.4 && < 1.5 , colour == 2.3.* , file-embed == 0.0.* , regex-applicative == 0.3.* - , diagrams-lib == 1.3.* + , diagrams-lib >= 1.3 && < 1.4 ghc-options: -Wall hs-source-dirs: src default-language: Haskell2010
src/Slides/Internal.hs view
@@ -24,7 +24,7 @@ svgFromDiagram :: Int -> Diagram SVG -> String svgFromDiagram h = dropAllButSvg . show - . Diag.renderDia SVG (SVG.SVGOptions (Diag.mkHeight $ fromIntegral h) Nothing "") + . Diag.renderDia SVG (SVG.SVGOptions (Diag.mkHeight $ fromIntegral h) Nothing "" [] True) renderLeafContent :: ContentNode -> String renderLeafContent (Header h s) = html ("h" ++ show h) s