funcmp

Functional MetaPost is a Haskell frontend to the MetaPost language

https://github.com/peti/funcmp

LTS Haskell 22.41:1.9
Stackage Nightly 2024-11-12:1.9
Latest on Hackage:1.9

See all snapshots funcmp appears in

GPL-3.0-only licensed by Meik Hellmund, Ralf Hinze, Joachim Korittky, Marco Kuhlmann, Ferenc Wágner, Peter Simons, Robin Green
Maintained by Peter Simons
This version can be pinned in stack with:funcmp-1.9@sha256:6fc010fbc262b3c8d1920e6ba6682d1e2cbd8cd35046262af3092fa3e376620a,3871

Functional MetaPost is a Haskell frontend to the MetaPost language by John Hobby. Users write their graphics as Haskell programs, which then emit MetaPost code that can be compiled into encapsulated PostScript files and smoothly included into e.g. LaTeX.

A collection of useful examples how to use Functional MetaPost can be found in the user's manual. The document doesn't offer very much detail in terms of explanations, but the code samples are quite helpful. Further documentation can be found in the original thesis that describes the implementation. The text is also available in German.

Last but not least, there is a tutorial that offers many helpful examples (which is also available in German).