diagrams-haddock is a tool for compiling embedded inline
diagrams code in Haddock documentation, for an
easy way to spice up your documentation with
diagrams. Just create some diagrams code using
special markup, run diagrams-haddock, and ensure
the resulting image files are installed along
with your documentation. For complete
documentation and examples, see
https://github.com/diagrams/diagrams-haddock/blob/master/README.md.
For a good example of a package making use of
diagrams-haddock, see the diagrams-contrib
package
(http://hackage.haskell.org/package/diagrams%2Dcontrib).