tfausak / cabal-gild

:crown: Format Haskell package descriptions.
https://hackage.haskell.org/package/cabal-gild
MIT License
49 stars 5 forks source link

Allow discovering more fields #86

Closed tfausak closed 5 months ago

tfausak commented 5 months ago

Fixes #68.

Some of these fields could perhaps have more reasonable default inclusion filters. For example, c-sources could match only **/*.c and **/*.h by default. However it felt less surprising to simply discover any files in the given directories. I suspect that will work for most people. And if not, it's easy enough to throw a --include=... on there.

tfausak commented 5 months ago

I'm a little unhappy with how much information there is to convey about the discover pragma. It makes me think that maybe it should be an entirely separate tool. That way cabal-gild could focus on formatting while cabal-discover (or whatever) could handle this tricky file discovery stuff.

However at this point I don't think it would be worth it for me to create an entirely separate project. Also without exact printing, the discovery tool would be in a bit of a weird place.