Avi-D-coder / implicit-hie

Auto generate a stack or cabal multi component hie.yaml file
BSD 3-Clause "New" or "Revised" License
201 stars 17 forks source link

Use Cabal-syntax to parse cabal packages #48

Closed pepeiborra closed 1 year ago

pepeiborra commented 1 year ago

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 commented 1 year ago

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

Avi-D-coder commented 1 year ago

@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 commented 1 year ago

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