Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Recursive descent? #8

Closed
afcowie opened this Issue Jan 17, 2013 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

afcowie commented Jan 17, 2013

(not a bug report so much as a set of questions for you to comment on before I do some hacking)

It's a bit of a pain to have to:

$ find src | xargs hothasktags

if I look at the hasktags program from the the hasktags package (which I used to use), invocation is:

$ hasktags -c src tests

which raises another point; I can list multiple directories. Yes, you can be more clever about this with some fancier shell scripting, but thought I'd mention it, although, having done so,

$ hasktags -c .

works too, and so would find . -type -f -name '*.hs'. Either way, it would be nice if hothasktags could take care of the recursive descent to find Haskell source files itself. I'll use filemanip for that if that's ok?

The second matter is that it's a bit obscure to have to redirect the output.

$ find ... | xargs hothasktags > tags

Surely just writing ./tags would do the trick?

Anyway, right now I have the whole long invocation as a target in my Makefile, but it's a bit of a pain to run casually in the tree of someone else's project, which is why I raised this. Love to be able to just do

$ hothasktags .

or so.

AfC

Owner

luqui commented Jan 18, 2013

Yeah I agree that would be nice. I doubt I'll have the spare time to implement this anytime soon. I'll happily accept a pull req if you do, though.

Contributor

afcowie commented Jan 18, 2013

Sure, I'll give it a go. Assign this one to me.

AfC

Owner

luqui commented Jan 18, 2013

It doesn't seem that I can...

@luqui luqui closed this in #25 Jan 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment