Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hasktags doesn't pick up ADT accessors defined using specific syntax #16

Open
arybczak opened this issue May 4, 2015 · 3 comments
Open

Comments

@arybczak
Copy link

arybczak commented May 4, 2015

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.

@thomie
Copy link
Contributor

thomie commented Dec 13, 2015

This works though:

data T = T {
      t1 :: Int
    , t2 :: Int
    , t3 :: Int
    , t4 :: Int
    , t5 :: Int
}

Note the extra indentation.

@arybczak
Copy link
Author

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.

jhenahan added a commit that referenced this issue May 13, 2018
@jhenahan
Copy link
Collaborator

I've added some testcases for this to see if I can work something out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants