Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-13 Thread Francesco Mazzoli
At Wed, 13 Feb 2013 15:32:57 +0900 (JST), Kazu Yamamoto (山本和彦) wrote: Francesco, I can confirm that 1.11.1 works. I think I fixed this problem. Would you try the master branch? https://github.com/kazu-yamamoto/ghc-mod Hi Kazu, Now I get another error: Error:command line:

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-13 Thread 山本和彦
Now I get another error: Error:command line: cannot satisfy -package wl-pprint even if ‘wl-pprint’ is installed, and ‘cabal configure; cabal build’ runs fine. It seems to me that you installed multiple GHCs and wl-pprint is not installed for one of them. Is my guess corrent? --Kazu

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-13 Thread Francesco Mazzoli
At Wed, 13 Feb 2013 19:51:15 +0900 (JST), Kazu Yamamoto (山本和彦) wrote: Now I get another error: Error:command line: cannot satisfy -package wl-pprint even if ‘wl-pprint’ is installed, and ‘cabal configure; cabal build’ runs fine. It seems to me that you installed multiple

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-13 Thread 山本和彦
Nope :). I have one ‘ghc’, and this is my ‘ghc-pkg list’: http://hpaste.org/82293. ‘ghci -package wl-pprint’ runs just fine. Uhhhm. Are you using sandbox? --Kazu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-13 Thread Francesco Mazzoli
At Wed, 13 Feb 2013 22:01:35 +0900 (JST), Kazu Yamamoto (山本和彦) wrote: Nope :). I have one ‘ghc’, and this is my ‘ghc-pkg list’: http://hpaste.org/82293. ‘ghci -package wl-pprint’ runs just fine. Uhhhm. Are you using sandbox? Actually it turns out that I have a ‘cabal-dev’ directory

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-13 Thread Francesco Mazzoli
At Wed, 13 Feb 2013 13:24:48 +, Francesco Mazzoli wrote: At Wed, 13 Feb 2013 22:01:35 +0900 (JST), Kazu Yamamoto (山本和彦) wrote: Nope :). I have one ‘ghc’, and this is my ‘ghc-pkg list’: http://hpaste.org/82293. ‘ghci -package wl-pprint’ runs just fine. Uhhhm. Are you using

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-12 Thread 山本和彦
Francesco, I can confirm that 1.11.1 works. I think I fixed this problem. Would you try the master branch? https://github.com/kazu-yamamoto/ghc-mod --Kazu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread Francesco Mazzoli
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,

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread CJ van den Berg
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.

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread Francesco Mazzoli
At Fri, 08 Feb 2013 11:11:06 +0100, CJ van den Berg wrote: 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

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread CJ van den Berg
On 08/02/13 11:20, Francesco Mazzoli wrote: At Fri, 08 Feb 2013 11:11:06 +0100, CJ van den Berg wrote: 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

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread Francesco Mazzoli
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@clay ~/src/kant (git)-[master] % cat .ghci :set -isrc And I still get the mentioned error. Did you take any other measures to make things work?

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread Ivan Lazar Miljenovic
On 8 February 2013 22:25, Francesco Mazzoli f...@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@clay ~/src/kant (git)-[master] % cat .ghci :set -isrc Try also having :set

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread CJ van den Berg
On 08/02/13 12:25, Francesco Mazzoli 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@clay ~/src/kant (git)-[master] % cat .ghci :set -isrc And I still get the mentioned error. Did

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread 山本和彦
Hi, 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

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread Francesco Mazzoli
At Fri, 08 Feb 2013 21:22:23 +0900 (JST), Kazu Yamamoto (山本和彦) wrote: I guess you don't install the kant library, right? If so, I will think how to treat this kind problem. The ‘kant’ package is the package I’m developing and using ghc-mod on. It includes both a library and an executable.

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread Francesco Mazzoli
At Fri, 08 Feb 2013 12:50:47 +0100, CJ van den Berg wrote: On 08/02/13 12:25, Francesco Mazzoli 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@clay ~/src/kant (git)-[master] %

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread 山本和彦
The ‘kant’ package is the package I’m developing and using ghc-mod on. Yes. I understand it. It includes both a library and an executable. The executable target has ‘kant’ as a dependency. What I asked is whether or not the kant library is installed by cabal. To edit a Haskell file for

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread Francesco Mazzoli
At Fri, 08 Feb 2013 22:18:20 +0900 (JST), Kazu Yamamoto (山本和彦) wrote: The ‘kant’ package is the package I’m developing and using ghc-mod on. Yes. I understand it. It includes both a library and an executable. The executable target has ‘kant’ as a dependency. What I asked is

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread 山本和彦
Well installing it has the big problem that each time I make a change to the interface I have to manually re-install, and this happens often since I’m in an early stage... I'm not saying that you should install it. But I just want to know your situation. Right, but this is surely doable

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread Francesco Mazzoli
At Fri, 08 Feb 2013 22:39:07 +0900 (JST), Kazu Yamamoto (山本和彦) wrote: Well installing it has the big problem that each time I make a change to the interface I have to manually re-install, and this happens often since I’m in an early stage... I'm not saying that you should install it.

Re: [Haskell-cafe] ghc-mod and cabal targets

2013-02-08 Thread Francesco Mazzoli
At Fri, 08 Feb 2013 13:43:12 +, Francesco Mazzoli wrote: At Fri, 08 Feb 2013 22:39:07 +0900 (JST), Kazu Yamamoto (山本和彦) wrote: Well installing it has the big problem that each time I make a change to the interface I have to manually re-install, and this happens often since I’m