[Haskell-cafe] ghc-mod and cabal targets

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Fri Feb 8 12:34:41 CET 2013


On 8 February 2013 22:25, Francesco Mazzoli <f at mazzo.li> wrote:
> At Fri, 08 Feb 2013 11:39:19 +0100,
> CJ van den Berg wrote:
>> I downloaded your package and tried it. It does work.
>
> So, what I have is
>
>    bitonic at clay ~/src/kant (git)-[master] % cat .ghci
>    :set -isrc

Try also having ":set -isrc/dist" and possibly ":set
-isrc/dist/<package name>" (not on a machine with Haskell so I can't
test this); I think I've had to do something like that before.

>
> And I still get the mentioned error.  Did you take any other measures to make
> things work?  I’m using ghc-mod version 1.11.3.
>
>> Kant.REPL, which it is trying to load, is in the kant package. So it is
>> looking for either the installed kant package, or the source files for
>> the kant package modules.
>>
>> How is that not a package dependency? Telling it where to find the
>> source files will remove the need to find an installed kant package.
>
> OK, now I understand what you are doing: instead of making ghc-mod rely on
> cabal, you simply make it load the files directly.  Which is a bit annoying in
> my case because I have some files that need to be preprocessed (alex/happy), but
> it would still be better than nothing.  I can achieve the same result by simply
> moving the ‘cabal’ file, or by deleting the target.  I guess that the ‘.ghci’
> has (or should have) the same effect.
>
> Francesco
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list