hakyll-diagrams: A Hakyll plugin for rendering diagrams figures from embedded Haskell code.
Compiles any Haskell diagrams code embedded in
input source files (Markdown, reStructuredText, etc.), replacing them with the rendered
diagrams figures in the generated HTML output. The diagrams figures can be inlined as
SVG code or referenced as external .svg image files using <img> tags.
For example, when processing a Markdown input source file, a code block like this:
``` diagram { svg:width=300 }
let
target = mconcat
[ circle 1 # lw 0 # fc red
, circle 2 # lw 0 # fc white
, circle 3 # lw 0 # fc red
]
background = roundedRect 8 8 0.1
# lw 0
# fc (sRGB24read "#808080")
# opacity 0.15
in target <> background
```
will be replaced in the resulting HTML page by this figure:
A thoughtful documentation with usage examples and results can be found at the project repository.
Downloads
- hakyll-diagrams-0.1.0.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2 |
|---|---|
| Dependencies | base (>=4.17.2 && <4.22), base16-bytestring (>=1.0.2 && <1.1), cryptohash-sha1 (>=0.11.101 && <0.12), data-default (>=0.7.1 && <0.9), diagrams (>=1.4.1 && <1.5), diagrams-core (>=1.5.1 && <1.6), diagrams-lib (>=1.4.6 && <1.6), diagrams-svg (>=1.4.3 && <1.6), hakyll (>=4.16.2 && <4.17), hint (>=0.9.0 && <0.10), pandoc-types (>=1.23 && <1.24), split (>=0.2.3 && <0.3), svg-builder (>=0.1.1 && <0.2), text (>=2.0.2 && <2.2) [details] |
| Tested with | ghc ==9.4.8 || ==9.12.2 |
| License | BSD-3-Clause |
| Author | Renato Garcia |
| Maintainer | fgarcia.renato@gmail.com |
| Uploaded | by renato_garcia at 2026-01-19T05:46:51Z |
| Category | Web |
| Home page | https://github.com/renatoGarcia/hakyll-diagrams |
| Source repo | head: git clone https://github.com/renatoGarcia/hakyll-diagrams.git |
| Distributions | |
| Downloads | 3 total (3 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |