implicit-hie icon indicating copy to clipboard operation
implicit-hie copied to clipboard

Use Cabal-syntax to parse cabal packages

Open pepeiborra opened this issue 3 years ago • 1 comments

There's actually two changes here:

  1. Parse using the cabal-syntax package. This fixes bugs for descriptors that put source dirs in common stanzas, like this one.
  2. Generate one hie-bios component per module, instead of one per hs-source-dir. This fixes issues in projects that reuse the same hs-source-dir in multiple Cabal components, like the one linked above does too.

pepeiborra avatar Sep 16 '22 09:09 pepeiborra

@Avi-D-coder do I need to do anything to get this change into implicit-hie-cradle too ?

pepeiborra avatar Sep 16 '22 10:09 pepeiborra

@pepeiborra I published implicit-hie-0.1.3.0 with the changes in this pr. implicit-hie-cradle builds with implicit-hie-0.1.3.0 . So now just HLS and anything else upstream has to updated.

Avi-D-coder avatar Oct 19 '22 05:10 Avi-D-coder

@pepeiborra Does a minimal hie.yaml with cradle: {cabal: {}} cause issues on your project?

Avi-D-coder avatar Nov 21 '22 19:11 Avi-D-coder