diagrams-rasterific is a Rasterific backend for diagrams. It supports png, tif, bmp, jpg, pdf, and animated GIF output.
Diagrams is a powerful, flexible, declarative domain-specific language for creating vector graphics, using the Haskell programming language.