fig: Manipulation of FIG files

[ bsd3, graphics, library ] [ Propose Tags ]

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 [faq] 1.3.0, 1.3.1, 1.4.0
Change log Changelog
Dependencies base (<5), containers, haskell98, parsec, pretty [details]
License BSD-3-Clause
Author Anders Lau Olsen
Maintainer Anders Lau Olsen <>
Category Graphics
Home page
Uploaded by AndersLauOlsen at Wed Aug 10 16:28:14 UTC 2011
Distributions NixOS:1.4.0
Downloads 1365 total (20 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-27 [all 7 reports]


  • Graphics
    • Graphics.Fig
      • Graphics.Fig.Parser
      • Graphics.Fig.Printer
      • Graphics.Fig.Syntax
      • Graphics.Fig.Values


Maintainer's Corner

For package maintainers and hackage trustees

Readme for fig-1.3.1

[back to package description]
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