tfausak / cabal-gild

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

Allow excluding patterns #84

Closed tfausak closed 5 months ago

tfausak commented 5 months ago

Fixes #66.

This is wildly inefficient, which is why it's still a draft. I think the best way forward is to change MonadWalk to be a wrapper around getDirectoryFilesIgnore. That way I should be able to efficiently support both excluding and including (#67).

tfausak commented 5 months ago

This is arguably a breaking change since you can no longer discover modules outside the current directory, but that never would've worked with Cabal anyway so I don't think it matters.

Note that the only special character is *, so old exclusions will continue to work exactly the same as before (as long as they don't contain *, which would be very unusual).