Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Recursive descent? #8

Open
afcowie opened this Issue · 3 comments

2 participants

Andrew Cowie Luke Palmer
Andrew Cowie

(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

Luke Palmer
Owner

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.

Andrew Cowie

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

AfC

Luke Palmer
Owner

It doesn't seem that I can...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.