The diagrams-builder package

[Tags: bsd3, library]

diagrams-builder provides backend-agnostic tools for dynamically turning code into rendered diagrams, using the hint wrapper to the GHC API. It supports conditional recompilation using hashing of diagrams source code, to avoid recompiling code that has not changed. It is useful for creating tools which compile diagrams code embedded in other documents. For example, it is used by the BlogLiterately-diagrams package (a plugin for BlogLiterately) to compile diagrams embedded in Markdown-formatted blog posts.

Executables specific to the cairo, SVG, and postscript backends are included (more executables specific to other backends may be included in the future). All take an input file and an expression to render, and output an image file. If you want these executables you must explicitly enable the -fcairo, -fsvg, or -fps flags.

A LaTeX package, diagrams-latex.sty, is also provided in the latex/ directory of the source distribution, which renders diagrams code found within diagram environments. Note that diagrams-latex.sty is licensed under the GPL.


Versions0.2.0.0,, 0.3,, 0.4,,,,,,, 0.4.1, 0.4.2, 0.5,,,,,,,,,,,, 0.6,,,,,,,,, (info)
Change logCHANGES.markdown
Dependenciesbase (>=4.2 && <4.7), blaze-svg (>=0.3.3 && <0.4), bytestring (>=0.9.2 && <0.11), cmdargs (>=0.6 && <0.11), cryptohash (>=0.8 && <0.10), diagrams-builder, diagrams-cairo (==0.6.*), diagrams-lib (==0.6.*), diagrams-postscript (==0.6.*), diagrams-svg (==0.6.*), directory, filepath, haskell-src-exts (>=1.13.1 && <1.14), hint (==0.3.*)
AuthorBrent Yorgey
Home page
Bug tracker
Source repositoryhead: git clone
Executablesdiagrams-builder-ps, diagrams-builder-svg, diagrams-builder-cairo
UploadedThu Apr 4 01:58:27 UTC 2013 by BrentYorgey
DistributionsNixOS:, Stackage:
Downloads4883 total (386 in last 30 days)
StatusDocs uploaded by user
Build status unknown [no reports yet]




cairoinstall cairo-specific builder toolDisabled
svginstall svg-specific builder toolDisabled
psinstall postscript-specific builder toolDisabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees