hasktags
hasktags copied to clipboard
Hasktags doesn't pick up ADT accessors defined using specific syntax
Hey,
Consider a file (let's call it tags.hs) with the following contents:
data T = T {
t1 :: Int
, t2 :: Int
, t3 :: Int
, t4 :: Int
, t5 :: Int
}
When hasktags is run with this file as an argument, it produces the following output:
T tags.hs 1
T tags.hs 1
t1 tags.hs 2
It doesn't seem to pick up any accessor other than the first one in such case.
This works though:
data T = T {
t1 :: Int
, t2 :: Int
, t3 :: Int
, t4 :: Int
, t5 :: Int
}
Note the extra indentation.
Sure, but if one has already a lot of the code in the form I posted, changing it because hasktags can't parse it is a bit of a pain.
I've added some testcases for this to see if I can work something out.