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

Support import-dirs under Cabal flags #31

Open pepeiborra opened 3 years ago

pepeiborra commented 3 years ago

Since the introduction of Cabal flags in haskell-language-server.cabal, gen-hie is not able to generate a cradle that covers all the import dirs in that Cabal descriptor. In particular, the folder plugins/default gets missed because its included conditionally.

I think that implicit-hie should consider all possible import-dirs, regardless of the flag default values.