diagrams-pgf 1.4.2.1 → 1.5.0.1
raw patch · 2 files changed
Files
diagrams-pgf.cabal view
@@ -1,5 +1,5 @@ name: diagrams-pgf-version: 1.4.2.1+version: 1.5.0.1 synopsis: PGF backend for diagrams drawing EDSL. license: BSD3 license-file: LICENSE@@ -13,7 +13,7 @@ cabal-version: 1.18 extra-source-files: README.md, diagrams/*.svg extra-doc-files: diagrams/*.svg-tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.7 || ==9.4.5 || ==9.6.1+tested-with: GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2 || ==9.10.1 || ==9.12.1 description: This package provides a modular backend for rendering diagrams created@@ -34,22 +34,21 @@ Graphics.Rendering.PGF hs-source-dirs: src build-depends:- base >= 4.4 && < 4.19,+ base >= 4.4 && < 4.22, bytestring >= 0.9 && < 1.1, bytestring-builder < 1.1,- containers >= 0.3 && < 0.7,+ containers >= 0.3 && < 0.8, colour, diagrams-core >= 1.4 && < 1.6,- diagrams-lib >= 1.4 && < 1.5,+ diagrams-lib >= 1.4 && < 1.6, directory >= 1.0 && < 1.4,- filepath >= 1.2 && < 1.5,- hashable >= 1.1 && < 1.5,+ filepath >= 1.2 && < 1.6,+ hashable >= 1.1 && < 1.6, mtl >= 2.1 && < 3.0,- optparse-applicative >= 0.13 && < 0.19,+ optparse-applicative >= 0.13 && < 0.20, process >= 1.0 && < 1.7, split >= 0.1.2 && < 0.3, texrunner <= 0.0.2,- time >= 1.2 && < 1.14, JuicyPixels, vector, zlib
src/Diagrams/Backend/PGF/CmdLine.hs view
@@ -166,32 +166,28 @@ instance TypeableFloat n => Mainable (QDiagram PGF V2 n Any) where type MainOpts (QDiagram PGF V2 n Any) =- (DiagramOpts, DiagramLoopOpts, PGFCmdLineOpts, TexFormat)- mainRender (diaOpts, loopOpts, pgfOpts, format) d = do+ (DiagramOpts, PGFCmdLineOpts, TexFormat)+ mainRender (diaOpts, pgfOpts, format) d = do chooseRender diaOpts pgfOpts (formatToSurf format) d- defaultLoopRender loopOpts instance TypeableFloat n => Mainable (Surface, QDiagram PGF V2 n Any) where type MainOpts (Surface, QDiagram PGF V2 n Any) =- (DiagramOpts, DiagramLoopOpts, PGFCmdLineOpts)- mainRender (diaOpts, loopOpts, pgfOpts) (surf,d) = do+ (DiagramOpts, PGFCmdLineOpts)+ mainRender (diaOpts, pgfOpts) (surf,d) = do chooseRender diaOpts pgfOpts surf d- defaultLoopRender loopOpts -- Online diagrams instance TypeableFloat n => Mainable (OnlineTex (QDiagram PGF V2 n Any)) where type MainOpts (OnlineTex (QDiagram PGF V2 n Any))- = (DiagramOpts, DiagramLoopOpts, PGFCmdLineOpts, TexFormat)- mainRender (diaOpts, loopOpts, pgfOpts, format) d = do+ = (DiagramOpts, PGFCmdLineOpts, TexFormat)+ mainRender (diaOpts, pgfOpts, format) d = do chooseOnlineRender diaOpts pgfOpts (formatToSurf format) d- defaultLoopRender loopOpts instance TypeableFloat n => Mainable (Surface, OnlineTex (QDiagram PGF V2 n Any)) where type MainOpts (Surface, OnlineTex (QDiagram PGF V2 n Any))- = (DiagramOpts, DiagramLoopOpts, PGFCmdLineOpts)- mainRender (diaOpts, loopOpts, pgfOpts) (surf, d) = do+ = (DiagramOpts, PGFCmdLineOpts)+ mainRender (diaOpts, pgfOpts) (surf, d) = do chooseOnlineRender diaOpts pgfOpts surf d- defaultLoopRender loopOpts formatToSurf :: TexFormat -> Surface formatToSurf format = case format of