[Haskell-cafe] [Haskell] [ANNOUNCE] Haskdogs-0.1

Sergey Mironov ierton at gmail.com
Wed Sep 14 11:18:39 CEST 2011


2011/9/14 Ivan Lazar Miljenovic <ivan.miljenovic at gmail.com>:
> Re-cc'ing -cafe:
>
> On 14 September 2011 14:29, yi huang <yi.codeplayer at gmail.com> wrote:
>> On Wed, Sep 14, 2011 at 11:32 AM, Ivan Lazar Miljenovic
>> <ivan.miljenovic at gmail.com> wrote:
>>>
>>> On 14 September 2011 13:27, yi huang <yi.codeplayer at gmail.com> wrote:
>>> > On Wed, Sep 14, 2011 at 10:18 AM, Ivan Lazar Miljenovic
>>> > <ivan.miljenovic at gmail.com> wrote:
>>> >>
>>> >> On 14 September 2011 11:24, yi huang <yi.codeplayer at gmail.com> wrote:
>>> >> > Cabal compains about "Unknown build tool hasktags".
>>> >> > It seems not necessary to set "Build-tools: hasktags" in cabal file?
>>> >>
>>> >> cabal-install isn't capable of automatically building and installing
>>> >> build-tools for you.  So to install haskdogs, you need to do "cabal
>>> >> install hasktags && cabal install haskdogs".
>>> >
>>> > I have installed hasktags, and .cabal/bin is in my PATH, i can run
>>> > hasktags
>>> > directly from shell.
>>> > What else did i miss?
>>>
>>> How did you specify your PATH?  You can't use ~/.cabal/bin, you need
>>> either $HOME/.cabal/bin or the fully expanded path.
>>
>> It is $HOME/.cabal/bin , and `which hasktags' can find it without problem.
>> Cabal 1.10.2, ghc 7.0.4, i'm trying to look into cabal source to find the
>> problem.
>
> Actually... looks like you're right.  I can't build it either, he
> appears to have hard-coded some paths in and it appears that you need
> some kind of magic to register a program as a build tool (that's what
> the error is from: hasktags isn't a registered build-tool).
>
> --
> Ivan Lazar Miljenovic
> Ivan.Miljenovic at gmail.com
> IvanMiljenovic.wordpress.com
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

Yes, I forgot to mention PATH. I expect somthing like

export PATH="$HOME/.cabal/bin:$PATH"

in .bash_profile or similar.

Also, I probably should remove hasktags from the build-tools. Better
check it's presense in tuntime.

Thanks a lot,
Sergey



More information about the Haskell-Cafe mailing list