[Haskell-cafe] ghc-mod and cabal targets

Francesco Mazzoli f at mazzo.li
Fri Feb 8 11:00:58 CET 2013


Hi,

I have been using ghc-mod for a long time and I can’t give it up now, but I have
an annoying problem.

When I have a cabal file with a library and an executable depending on the
library (for example here
<https://github.com/bitonic/kant/blob/master/kant.cabal>), ghc-mod is not happy,
complaining in every file that

    Error:<command line>: cannot satisfy -package kant

Where ‘kant’ is the package that the cabal file defines with the library that
the executable needs.  Note that if I issue ‘cabal configure; cabal build’,
everything goes smoothly.

Did anybody stumble on the same problem?

Thanks,
Francesco



More information about the Haskell-Cafe mailing list