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

Re-cc'ing -cafe:
On 14 September 2011 14:29, yi huang
On Wed, Sep 14, 2011 at 11:32 AM, Ivan Lazar Miljenovic
wrote: On 14 September 2011 13:27, yi huang
wrote: On Wed, Sep 14, 2011 at 10:18 AM, Ivan Lazar Miljenovic
wrote: On 14 September 2011 11:24, yi huang
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@gmail.com IvanMiljenovic.wordpress.com

2011/9/14 Ivan Lazar Miljenovic
Re-cc'ing -cafe:
On 14 September 2011 14:29, yi huang
wrote: On Wed, Sep 14, 2011 at 11:32 AM, Ivan Lazar Miljenovic
wrote: On 14 September 2011 13:27, yi huang
wrote: On Wed, Sep 14, 2011 at 10:18 AM, Ivan Lazar Miljenovic
wrote: On 14 September 2011 11:24, yi huang
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@gmail.com IvanMiljenovic.wordpress.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@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

On 14 September 2011 19:18, Sergey Mironov
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.
You also seemed to have some hard-coded paths to have it in ~/.cabal/var; this assumes that people use cabal-install to install your package rather than a system package manager or the like. Is it possible to change that? -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

2011/9/14 Ivan Lazar Miljenovic
On 14 September 2011 19:18, Sergey Mironov
wrote: 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.
You also seemed to have some hard-coded paths to have it in ~/.cabal/var; this assumes that people use cabal-install to install your package rather than a system package manager or the like. Is it possible to change that?
Shure. But I still need some directory to store unpacked sources. If not ~/.cabal/var, then it should be something like ~/.haskdogs/. Exact path doesn't metter actually. I'll add automatic creation of this dir and maybe it is good idea to move it to .. heh, one-line long config file instead of hardcode :) Thanks, Sergey.

On 16 September 2011 04:33, Sergey Mironov
not ~/.cabal/var, then it should be something like ~/.haskdogs/. Exact path doesn't metter actually. I'll add automatic creation of this dir and maybe it is good idea to move it to .. heh, one-line long config file instead of hardcode :)
Why do you need the sources? Would it suffice to use Cabal's Paths_* module for this, using this guide: http://neilmitchell.blogspot.com/2008/02/adding-data-files-using-cabal.html ? -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
participants (2)
-
Ivan Lazar Miljenovic
-
Sergey Mironov