This is the Haskell Fig library for parsing and manipulating Xfig files. The library is provided as a Cabal package; it can be installed as follows: runhaskell Setup.hs configure runhaskell Setup.hs build sudo runhaskell Setup.hs install Packages such as parsec that the library depends on can be found in the package repository (http://hackage.haskell.org). To try out the library, edit the Main.hs file to suit your needs and build the program with the following command: ghc --make Main.hs -o fig2fig Feed a FIG file to the program and view the results: ./fig2fig < transitive.fig > out.fig xfig out.fig For more information see http://www.bergsoe.org/fig/