MarcWeber / hasktags

Produces ctags "tags" and etags "TAGS" files for Haskell programs
Other
127 stars 32 forks source link

Tags aren't generated for classes when the => arrow isn't on the same line as the class name #40

Open neongreen opened 7 years ago

neongreen commented 7 years ago

For the following files, an empty tags file is generated:

class (A x, B x) =>
      Foo x
class (A x, B x)
      =>
      Foo x

For this file, tags are generated correctly:

class (A x, B x)
      => Foo x
jhenahan commented 7 years ago

Thanks for the minimal examples! I'll see if I can knock this one out quickly.

jhenahan commented 6 years ago

I've added your test cases and I'm looking into this now. I know approximately where it's going wrong, but unwinding what it's actually doing there is taking some effort.