[Haskell-cafe] ghc-mod and cabal targets
CJ van den Berg
cj at vdbonline.com
Fri Feb 8 11:11:06 CET 2013
Hi Francesco,
To keep ghc-mod happy, you also have to keep ghci happy. What you
probably need is a .ghci file in the directory with a ":set -isrc" line
in it. You may also need to add other stuff to .ghci such as language
extensions and whatever else is needed to load your project with ghci.
Regards,
CJ
On 08/02/13 11:00, Francesco Mazzoli wrote:
> 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
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
--
CJ van den Berg
mailto:cj at vdbonline.com
xmpp:neurocyte at gmail.com
More information about the Haskell-Cafe
mailing list