
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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- CJ van den Berg mailto:cj@vdbonline.com xmpp:neurocyte@gmail.com