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

Support curly braces #28

Open
anka-213 opened this issue Nov 16, 2020 · 7 comments
Open

Support curly braces #28

anka-213 opened this issue Nov 16, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@anka-213
Copy link

Cabal files apparently allows writing curly braces around blocks, which confuses implicit-hie. For example, this file: https://github.com/ivan-m/graphviz/blob/42dbb6312d7edf789d7055079de7b4fa099a4acc/graphviz.cabal#L59

Library {

-- ...

will generate a hie.yaml file like this

cradle:
  cabal:
    - path: "./"
      component: "graphviz:lib:{"

# ...

instead of the expected

cradle:
  cabal:
    - path: "./"
      component: "lib:graphviz"

# ...
@jneira jneira added the bug Something isn't working label Nov 16, 2020
@Avi-D-coder
Copy link
Owner

Avi-D-coder commented Nov 17, 2020

Is cabal indent insensitive within curly blocks?

@anka-213
Copy link
Author

What does index sensitive mean?

@Avi-D-coder
Copy link
Owner

oops, indent insensitive.

@georgefst
Copy link

Just hit this trying to load the Graphviz library in to HLS. No idea why it uses those braces, but, well, if Cabal accepts them...

@Avi-D-coder
Copy link
Owner

Unfortunately, I don't have any time to work on this in the next two weeks.

@noughtmare
Copy link

noughtmare commented Apr 21, 2021

@Avi-D-coder
Copy link
Owner

I'll take a look this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants