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

Glob on directories where sensible

Open expipiplus1 opened this issue 5 years ago • 2 comments

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.

expipiplus1 avatar Oct 18 '20 08:10 expipiplus1

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

Avi-D-coder avatar Oct 18 '20 10:10 Avi-D-coder

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.

jneira avatar Oct 20 '20 05:10 jneira