You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swap the 1.x diagrams-lib/diagrams-builder/diagrams-cairo stack for this
workspace's 2.0 APIs on top of the upstream master merge:
* Build diagrams through the rewritten diagrams-builder interface
(Snippets + DiagramBuilder + diaSnippet), interpreting a
'saveDiagram <backend token>' expression instead of constructing
per-backend BuildOpts. The SomeBuildOpts/MkImage existential
machinery is no longer needed.
* Replace the Cairo backend with Rasterific (diagrams-cairo is not part
of the 2.0 cabal workspace). Rasterific writes .png and, for the
latex/beamer output formats, .pdf (dispatched on file extension), so
upstream's latex->pdf behaviour is preserved; the CLI backend flag now
accepts 'Rasterific' instead of 'Cairo'. SVG behaviour is unchanged.
* Keep upstream behaviour otherwise: hash-named image files in the
output directory, skip-if-exists regeneration, '.'/'O' progress
output, width/height/caption/alt attributes, echo=Above/Below,
absolute-path switch, Figure support, and the 'pad 1.1 . centerXY'
post-processing (now applied inside the interpreted expression).
* Drop the snippet imports of Diagrams.TwoD.Types/Diagrams.Core.Points/
Data.Typeable (1.x workarounds) and Graphics.SVGFonts (SVGFonts has no
2.0-compatible release); Diagrams.Prelude plus the backend module are
imported automatically by the builder.
* Update dependencies: diagrams 2.0 + diagrams-builder 2.0 +
diagrams-svg/diagrams-rasterific (runtime deps for the interpreter);
drop diagrams-lib/-core/-cairo, linear, svg-builder and the test
suite's SVGFonts.
Tests (all 7 golden tests) pass; hint picks the workspace packages up
from cabal's .ghc.environment file as before (build with
--write-ghc-environment-files=always).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments