Integrating tools with Cabal

Roman Cheplyaka roma at
Fri Nov 9 12:44:41 CET 2012

* Mikhail Glushenkov <the.dead.shall.rise at> [2012-11-09 08:57:30+0100]
> I think that the path of least resistance is to make your analysis
> tool command-line compatible with ghc. Then you can use it like this:
> $ cabal configure --with-compiler=/path/to/my-ghc
> $ cabal build

I tried this, and one problem I ran into is that Cabal invokes the
linker on the files that it expects my tool to produce. 'ld' fails, and
the build aborts.

I haven't found any way to disable or configure the linker. Any


More information about the cabal-devel mailing list