The fig package

[Tags:bsd3, library]

The Fig library provides parsing and printing for the FIG 3.2 format (the format used by the Xfig drawing program) together with a simple facility for search-and-replace operations.

[Skip to Readme]


Versions 1.3.0, 1.3.1, 1.4.0
Change log Changelog
Dependencies base (<5), containers, haskell98, parsec, pretty [details]
License BSD3
Author Anders Lau Olsen
Maintainer Anders Lau Olsen <>
Stability stable
Category Graphics
Home page
Uploaded Tue Nov 9 14:27:56 UTC 2010 by AndersLauOlsen
Distributions NixOS:1.4.0
Downloads 680 total (8 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for fig

Readme for fig-1.3.0

This is the Haskell Fig library for parsing and manipulating Xfig

The library is provided as a Cabal package; it can be installed as

    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 (

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