Avi-D-coder / implicit-hie

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

Glob on directories where sensible #23

Open expipiplus1 opened 3 years ago

expipiplus1 commented 3 years ago

If a directory is only used by a single component, would it make sense to just attach that directory to a component, instead of listing the files in there individually? This might mean neater hie.yaml files, as well as be a bit more resilient to extra files appearing.

Avi-D-coder commented 3 years ago

Probably, I haven't thought about that approach. Contributions welcome.

jneira commented 3 years ago

Not sure if that will hold for cases where several exes/tests share a common directory and each one picks different modules from it (maybe sharing some of them?) I think ghcide/hls is stricter nowadays with module targets and it does not discover modules dependencies in its own. TBH Dont know for sure if before that change it caused issues. Afair for libs we are using the hs-source-dir with no issues.